Skip to content

Commit

Permalink
adding sharding to tests - checking to see if this resolves space iss…
Browse files Browse the repository at this point in the history
…ues with the runner
  • Loading branch information
aw-watson committed Dec 10, 2024
1 parent 49c618e commit 167adfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
shard: [1, 2, 3, 4]

steps:
- name: Checkout
Expand All @@ -18,13 +21,13 @@ jobs:
java-version: '17'
distribution: 'adopt'

- name: Set up Apptainer
- name: Set up Apptainer 1.3.0
uses: eWaterCycle/setup-apptainer@v2
with:
apptainer-version: 1.3.0


- name: Setup Nextflow latest-edge
- name: Setup Nextflow 24.10.1
uses: nf-core/setup-nextflow@v1
with:
version: "24.10.1"
Expand All @@ -34,5 +37,5 @@ jobs:
wget -qO- https://get.nf-test.com | bash
sudo mv nf-test /usr/local/bin/
- name: Run Tests
run: nf-test test --ci
- name: Run Tests (Shard ${{ matrix.shard }}/${{ strategy.job-total }})
run: nf-test test --ci --shard ${{ matrix.shard }}/${{ strategy.job-total }}
3 changes: 0 additions & 3 deletions tests/modules/hostRemoval/hostRemoval.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ nextflow_workflow {
}

then {
print(workflow.out)
print(path(workflow.out.paired.get(0)[0]).readLines()[0])
print(path(workflow.out.paired.get(0)[0]).readLines().subList(0,5))
assertAll(
{assert workflow.success},
{assert snapshot(workflow.out).match()}
Expand Down

0 comments on commit 167adfc

Please sign in to comment.