Skip to content

Commit

Permalink
feat: add testing for multiple execution modes
Browse files Browse the repository at this point in the history
  • Loading branch information
rroutsong committed Jul 17, 2024
1 parent 5347491 commit 0e00d8b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,49 @@ on:
branches_ignore: []

jobs:
Dry_Run_and_Lint:
Dry_Run_and_Lint_DNA&RNA:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://snakemake/snakemake:latest
- name: Dry Run with test data
- name: Dry Run
run: |
docker run -v $PWD:/opt2 snakemake/snakemake:latest \
/opt2/metamorph run --input /opt2/.tests/test_cohort.txt \
--output /opt2/output --mode local --dry-run
- name: View the pipeline config file
- name: View the pipeline config file [DNA & RNA modes]
run: |
echo "Generated config file for pipeline...." && cat $PWD/output/config.json
- name: Lint Workflow
continue-on-error: true
run: |
docker run -v $PWD:/opt2 snakemake/snakemake:latest snakemake --lint -s /opt2/output/workflow/Snakefile -d /opt2/output || \
echo 'There may have been a few warnings or errors. Please read through the log to determine if its harmless.'
Dry_Run_and_Lint_DNAonly1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://snakemake/snakemake:latest
- name: Dry Run [DNA only mode]
run: |
docker run -v $PWD:/opt2 snakemake/snakemake:latest \
/opt2/metamorph run --input /opt2/.tests/test_cohort_DNAonly.txt \
--output /opt2/output --mode local --dry-run
- name: View the pipeline config file [DNA only mode]
run: |
echo "Generated config file for pipeline...." && cat $PWD/output/config.json
- name: Lint Workflow
continue-on-error: true
run: |
docker run -v $PWD:/opt2 snakemake/snakemake:latest snakemake --lint -s /opt2/output/workflow/Snakefile -d /opt2/output || \
echo 'There may have been a few warnings or errors. Please read through the log to determine if its harmless.'
Dry_Run_DNA2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://snakemake/snakemake:latest
- name: Dry Run [DNA only mode w RNA column]
run: |
docker run -v $PWD:/opt2 snakemake/snakemake:latest \
/opt2/metamorph run --input /opt2/.tests/test_cohort_DNAonly_RNAcolexists.txt \
--output /opt2/output --mode local --dry-run
5 changes: 5 additions & 0 deletions .tests/test_cohort_DNAonly.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DNA
/opt2/.tests/WT_S1_R1.fastq.gz
/opt2/.tests/WT_S1_R2.fastq.gz
/opt2/.tests/WT_S2_R1.fastq.gz
/opt2/.tests/WT_S2_R2.fastq.gz
5 changes: 5 additions & 0 deletions .tests/test_cohort_DNAonly_RNAcolexists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DNA RNA
/opt2/.tests/WT_S1_R1.fastq.gz
/opt2/.tests/WT_S1_R2.fastq.gz
/opt2/.tests/WT_S2_R1.fastq.gz
/opt2/.tests/WT_S2_R2.fastq.gz

0 comments on commit 0e00d8b

Please sign in to comment.