-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pytest workflow #546
Closed
Closed
Pytest workflow #546
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
d8994eb
test(default): Rewrite with pytest-workflow
edmundmiller c9b39ca
test(star_salmon): Rewrite with pytest-workflow
edmundmiller 15e053c
test: GITHUB_WORKSPACE => main.nf
edmundmiller 115c82d
test(star_salmon): Use two tags instead of one
edmundmiller 67fb0dc
ci: Fix syntax error
edmundmiller 4da30ab
test(star_rsem): Rewrite to use pytest-workflow
edmundmiller 2c9ed44
test(hisat2): Rewrite to use pytest-workflow
edmundmiller 0c90a56
ci: Fix step names
edmundmiller b0309d1
chore: Remove TODOs
edmundmiller 8ca995a
test(salmon): Rewrite to use pytest-workflow
edmundmiller a75c060
test(sra_download): Rewrite to use pytest-workflow
edmundmiller 2015a0a
ci: Fix typo
edmundmiller afdf853
test: Fix naming so tests get picked up by pytest
edmundmiller 5d42375
ci: Fix another yaml typo
edmundmiller f0ce755
ci: Keep working-directories of failures
edmundmiller 002df2f
test(sra_download): main => main.nf
edmundmiller ca49170
ci: Add " around matrix parameters
edmundmiller e002906
ci: Remove -- in params
edmundmiller 8118452
ci: Remove extra STAR tags
edmundmiller 2bb4389
ci: Add continue on failure to SRA download
edmundmiller 7cea5ad
ci: Remove --symlink
edmundmiller 73e4459
ci: Remove multiple workflow threads
edmundmiller a76691d
Fix typo
edmundmiller f45767e
ci: Add local modules workflow
edmundmiller 57a8560
test: Add config infrastructure
edmundmiller d0c9f37
tests: Add modules config
edmundmiller 8a9d3c7
test: Get cleaver with module data includeConfig
edmundmiller 873fd10
test(quantify_salmon): Add initial test
edmundmiller 885e5a8
style: s/'/"
edmundmiller a244b54
test: Bump version to 21.04-0
edmundmiller 14bdb5f
chore: Add a note to default tests only supporting docker
edmundmiller 14eaea7
ci: Use parameters in job names
edmundmiller 6ed824f
test(star_salmon): Add missing tests
edmundmiller a68e9f5
ci: Fix salmon params
edmundmiller a2d0a37
test(quantify_salmon): Fix path
edmundmiller f600692
ci: Upload logs on failure
edmundmiller b0c92e4
test: Load default nextflow.config
edmundmiller 0e8f245
test: Add modules config include back in
edmundmiller 8ee3524
test(star_salmon): Fix tag
edmundmiller 5275ced
test: Remove all ` in test names
edmundmiller b2aa206
test: Add modules clone step
edmundmiller 5a4fb66
test: Remove -- in test names
edmundmiller dd96ef5
test(quantify_salmon): Actually call a value
edmundmiller 8a74e46
ci: Update Local modules to triggers
edmundmiller faa22a6
test(star_salmon): Mark remove_ribo_rna as failing
edmundmiller 40b93de
test(quant_rsem): Add default test
edmundmiller 617773a
test: Mark subworkflows as failing
edmundmiller 32f2ad2
test(default): Add expected files and their md5sums
edmundmiller 9554d2a
Merge remote-tracking branch 'origin/dev' into pytest-workflow
grst File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: Local Modules pytest-workflow | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
changes: | ||
name: Check for changes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
# Expose matched filters as job 'modules' output variable | ||
modules: ${{ steps.filter.outputs.changes }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: 'tests/config/pytest_software.yml' | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
name: ${{ matrix.tags }} ${{ matrix.profile }} ${{ matrix.nxf_version }} | ||
needs: changes | ||
if: needs.changes.outputs.modules != '[]' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
nxf_version: ['21.04.0-edge'] | ||
tags: ['${{ fromJson(needs.changes.outputs.modules) }}'] | ||
profile: ['docker', 'singularity'] ## 'conda' | ||
env: | ||
NXF_ANSI_LOG: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install Python dependencies | ||
run: python -m pip install --upgrade pip pytest-workflow | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: /usr/local/bin/nextflow | ||
key: ${{ runner.os }}-nextflow-${{ matrix.nxf_version }} | ||
restore-keys: | | ||
${{ runner.os }}-nextflow- | ||
|
||
- name: Install Nextflow | ||
env: | ||
NXF_VER: ${{ matrix.nxf_version }} | ||
CAPSULE_LOG: none | ||
run: | | ||
wget -qO- get.nextflow.io | bash | ||
sudo mv nextflow /usr/local/bin/ | ||
|
||
- name: Set up Singularity | ||
if: matrix.profile == 'singularity' | ||
uses: eWaterCycle/setup-singularity@v5 | ||
with: | ||
singularity-version: 3.7.1 | ||
|
||
- name: Setup miniconda | ||
if: matrix.profile == 'conda' | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
channels: conda-forge,bioconda,defaults | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Conda clean | ||
if: matrix.profile == 'conda' | ||
run: conda clean -a | ||
|
||
# Test the module | ||
- name: Run pytest-workflow | ||
# only use one thread for pytest-workflow to avoid race condition on conda cache. | ||
run: TMPDIR=~ PROFILE=${{ matrix.profile }} pytest --tag ${{ matrix.tags }} --symlink --kwdof | ||
|
||
- name: Upload logs on failure | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: logs-${{ matrix.tags }}-${{ matrix.profile }}-${{ matrix.nxf_version }} | ||
path: | | ||
/home/runner/pytest_workflow_*/*/.nextflow.log | ||
/home/runner/pytest_workflow_*/*/log.out | ||
/home/runner/pytest_workflow_*/*/log.err |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a separate
star_salmon
for this? Couldn't this just be another entry in thematrix
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be another entry in the matrix, I was thinking this was a good interim to make sure we didn't miss anything in the conversion.