chore: dev to master #178
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snakemake dry run | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master and develop branch | |
push: | |
branches: | |
- develop | |
- master | |
pull_request: | |
branches: | |
- develop | |
- master | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
snakemake-dry-run: | |
name: Run snakemake dry run | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Setup Mambaforge | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
activate-environment: my-env | |
use-mamba: true | |
- name: Add conda to system path | |
run: | | |
echo $CONDA/bin >> $GITHUB_PATH | |
- name: Install requirements.txt | |
run: | | |
pip install -r requirements.txt | |
- name: Install requirements.test.txt | |
run: | | |
pip install -r requirements.test.txt | |
- name: snakemake dry run | |
working-directory: .tests/integration | |
run: | | |
mamba install -c conda-forge -c bioconda snakemake singularity | |
snakemake -n -s ../../workflow/Snakefile --configfile config/config.yaml |