From 09c8ece310efa0e529a15771909feadbd0735045 Mon Sep 17 00:00:00 2001 From: maxulysse Date: Mon, 5 Sep 2022 15:52:50 +0200 Subject: [PATCH] reduce number of CI tests --- .github/workflows/ci.yml | 58 +++++++++++++++++++++++++++++++++++++++- CHANGELOG.md | 1 + 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03e790cb99..a4000ee67b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,63 @@ jobs: NXF_VER: - "22.04.5" - "latest-everything" + test: + - "default" + profile: ["docker"] + steps: + - name: Check out pipeline code + uses: actions/checkout@v2 + + - name: Install Nextflow + uses: nf-core/setup-nextflow@v1 + with: + version: "${{ matrix.NXF_VER }}" + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.x" + + - name: Install dependencies + run: python -m pip install --upgrade pip pytest-workflow + + - name: Run pipeline with tests settings + uses: Wandalen/wretry.action@v1.0.11 + with: + command: PROFILE=${{ matrix.profile }} pytest --tag ${{ matrix.test }} --symlink --kwdof --git-aware --color=yes + attempt_limit: 3 + + - name: Output log on failure + if: failure() + run: | + sudo apt install bat > /dev/null + batcat --decorations=always --color=always /tmp/pytest_workflow_*/*/log.{out,err} + + - name: Upload logs on failure + if: failure() + uses: actions/upload-artifact@v2 + with: + name: logs-${{ matrix.profile }} + path: | + /tmp/pytest_workflow_*/*/.nextflow.log + /tmp/pytest_workflow_*/*/log.out + /tmp/pytest_workflow_*/*/log.err + /tmp/pytest_workflow_*/*/work + /tmp/pytest_workflow_*/**/.command.log + !/tmp/pytest_workflow_*/*/work/conda + !/tmp/pytest_workflow_*/*/work/singularity + + test_all: + name: Run pipeline with test data (complete) + # Only run on push if this is the nf-core dev branch (merged PRs) + if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/sarek') }}" + runs-on: ubuntu-latest + strategy: + # HACK Remove after DSL2 rewrite is done + fail-fast: false + matrix: + NXF_VER: + - "22.04.5" test: - "aligner" - "alignment_to_fastq" @@ -31,7 +88,6 @@ jobs: - "cnvkit" - "controlfreec" - "deepvariant" - - "default" - "freebayes" - "gatk4_spark" - "haplotypecaller" diff --git a/CHANGELOG.md b/CHANGELOG.md index 941e6a214e..809d4ea6eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [#719](https://github.com/nf-core/sarek/pull/719) - Added boxes to subway map - [#720](https://github.com/nf-core/sarek/pull/720) - Sync `TEMPLATE` with `tools` `2.5` - [#723](https://github.com/nf-core/sarek/pull/723) - Sync `TEMPLATE` with `tools` `2.5.1` +- [#730](https://github.com/nf-core/sarek/pull/730) - Reduce number of tests ### Fixed