diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 41367bf7..4840a93d 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -25,6 +25,6 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/modu - [ ] Add a resource `label` - [ ] Use BioConda and BioContainers if possible to fulfil software requirements. - Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky: - - [ ] `PROFILE=docker pytest --tag --symlink --wt 2 --keep-workflow-wd` - - [ ] `PROFILE=singularity pytest --tag --symlink --wt 2 --keep-workflow-wd` - - [ ] `PROFILE=conda pytest --tag --symlink --wt 2 --keep-workflow-wd` + - [ ] `PROFILE=docker pytest --tag --symlink --keep-workflow-wd` + - [ ] `PROFILE=singularity pytest --tag --symlink --keep-workflow-wd` + - [ ] `PROFILE=conda pytest --tag --symlink --keep-workflow-wd` diff --git a/.github/workflows/pytest-workflow.yml b/.github/workflows/pytest-workflow.yml index 7878b8e3..84cc8eb1 100644 --- a/.github/workflows/pytest-workflow.yml +++ b/.github/workflows/pytest-workflow.yml @@ -80,7 +80,8 @@ jobs: # Test the module - name: Run pytest-workflow - run: TMPDIR=~ PROFILE=${{ matrix.profile }} pytest --tag ${{ matrix.tags }} --symlink --wt 2 --kwdof + # 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() diff --git a/README.md b/README.md index bb89579f..121f38fe 100644 --- a/README.md +++ b/README.md @@ -275,21 +275,21 @@ In order to test that each module added to `nf-core/modules` is actually working ```console cd /path/to/git/clone/of/nf-core/modules/ - PROFILE=docker pytest --tag bowtie --symlink --wt 2 --keep-workflow-wd + PROFILE=docker pytest --tag bowtie --symlink --keep-workflow-wd ``` - Typical command with Singularity: ```console cd /path/to/git/clone/of/nf-core/modules/ - TMPDIR=~ PROFILE=singularity pytest --tag bowtie --symlink --wt 2 --keep-workflow-wd + TMPDIR=~ PROFILE=singularity pytest --tag bowtie --symlink --keep-workflow-wd ``` - Typical command with Conda: ```console cd /path/to/git/clone/of/nf-core/modules/ - PROFILE=conda pytest --tag bowtie --symlink --wt 2 --keep-workflow-wd + PROFILE=conda pytest --tag bowtie --symlink --keep-workflow-wd ``` - See [docs on running pytest-workflow](https://pytest-workflow.readthedocs.io/en/stable/#running-pytest-workflow) for more info.