From 443b47e13c65cde2dccd72eb560374dc45f00d10 Mon Sep 17 00:00:00 2001 From: Lukas Forer Date: Thu, 23 May 2024 14:19:10 +0200 Subject: [PATCH] Add `--shard` option --- .github/workflows/ci-tests.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index c575fa2..80acc6b 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -4,9 +4,12 @@ on: [push, pull_request] jobs: - build: + test: runs-on: ubuntu-latest + strategy: + matrix: + shard: [1, 2, 3, 4, 5] steps: - name: Checkout @@ -31,8 +34,8 @@ jobs: - name: Build Docker run: docker build -t genepi/nf-gwas . - - name: Run Tests - run: nf-test test + - name: Run Tests (Shard ${{ matrix.shard }}/${{ strategy.job-total }}) + run: nf-test test --shard ${{ matrix.shard }}/${{ strategy.job-total }} - name: Run static tests with development profile run: ./run-tests.sh