Skip to content

Commit

Permalink
alter ci to run test_timstof and test_full only on push against main
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasscheid committed May 15, 2024
1 parent 11c1f19 commit 65980b1
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- dev
- master
- main
pull_request:
release:
types: [published]
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
# Test latest edge release of Nextflow
- NXF_VER: ""
NXF_EDGE: "1"
tests: ["test_mokapot", "test_percolator", "test_ionannotator", "test_timstof", "test_full"]
tests: ${{ github.ref == 'refs/heads/main' && ['test_mokapot', 'test_percolator', 'test_ionannotator', 'test_timstof', 'test_full'] || ['test_mokapot', 'test_percolator', 'test_ionannotator'] }}
steps:
- name: Check out pipeline code
uses: actions/checkout@v2
Expand All @@ -72,12 +72,6 @@ jobs:
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name:
Run pipeline with profile ${{ matrix.tests }}
# Run test_timstof and test_full only on push against master, since they are time-consuming
- name: Run pipeline with profile ${{ matrix.tests }}
run: |
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.tests }},docker --max_memory '6.GB' --max_cpus 2 --spectrum_batch_size 5000 --outdir ./results
elif [[ "${{ github.ref }}" != "refs/heads/master" && ("${{ matrix.tests }}" != "test_timstof" && "${{ matrix.tests }}" != "test_full") ]]; then
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.tests }},docker --max_memory '6.GB' --max_cpus 2 --spectrum_batch_size 5000 --outdir ./results
fi
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.tests }},docker --max_memory '6.GB' --max_cpus 2 --spectrum_batch_size 5000 --outdir ./results

0 comments on commit 65980b1

Please sign in to comment.