Skip to content

Commit 94c8eff

Browse files
authored
Merge pull request #3553 from ewels/nightly-nextflow-ci
GitHub action for nightly tests with Nextflow from source
2 parents 463dbc7 + 5501f0e commit 94c8eff

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Test with Nextflow from source
2+
3+
on:
4+
workflow_dispatch: # Manual trigger
5+
schedule:
6+
# Run at 00:00 UTC on Monday, Wednesday, Friday (2:00 CEST)
7+
- cron: "0 0 * * 1,3,5"
8+
9+
jobs:
10+
test-with-nextflow-source:
11+
runs-on: ubuntu-latest
12+
env:
13+
NXF_ANSI_LOG: false
14+
15+
steps:
16+
- name: Check out Nextflow
17+
uses: actions/checkout@v4
18+
with:
19+
repository: nextflow-io/nextflow
20+
path: nextflow
21+
22+
- uses: actions/checkout@v4
23+
name: Check out nf-core/tools
24+
with:
25+
ref: dev
26+
path: nf-core-tools
27+
28+
- name: Set up Python
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: "3.13"
32+
cache: pip
33+
cache-dependency-path: nf-core-tools/pyproject.toml
34+
35+
- name: Set up Java
36+
uses: actions/setup-java@v4
37+
with:
38+
distribution: "temurin"
39+
java-version: "21"
40+
41+
- name: Build Nextflow
42+
run: |
43+
cd nextflow
44+
./gradlew compile
45+
chmod +x nextflow
46+
echo "$(pwd)" >> $GITHUB_PATH
47+
nextflow -version
48+
49+
- name: Install nf-core/tools
50+
run: |
51+
cd nf-core-tools
52+
python -m pip install --upgrade pip
53+
pip install .
54+
55+
- name: Create new pipeline
56+
run: nf-core pipelines create -n testpipeline -d "This pipeline is for testing" -a "Testing McTestface"
57+
58+
- name: Run new pipeline
59+
run: nextflow run nf-core-testpipeline -profile docker,test --outdir ./results
60+
61+
- name: Send email on failure
62+
if: failure()
63+
uses: dsfx3d/action-aws-ses@v1
64+
env:
65+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
66+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
67+
AWS_DEFAULT_REGION: "eu-west-1"
68+
with:
69+
# to: nextflow-nightly-test-aaaaqbupbi4ikkrdg6b3bemnoq@nfcore.slack.com
70+
71+
72+
subject: "Nextflow source test CI failed"
73+
body: |
74+
The Nextflow source test CI workflow failed!
75+
76+
See the failed run here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
- switch to using runsOn runners in nf-core/tools repo ([#3537](https://github.com/nf-core/tools/pull/3537))
7171
- Handling issue with arity #3530 ([#3539](https://github.com/nf-core/tools/pull/3539))
7272
- chore(deps): update actions/github-script action to v7 ([#3545](https://github.com/nf-core/tools/pull/3545))
73+
- GitHub action for nightly tests with Nextflow from source ([#3553](https://github.com/nf-core/tools/pull/3553))
7374

7475
## [v3.2.0 - Pewter Pangolin](https://github.com/nf-core/tools/releases/tag/3.2.0) - [2025-01-27]
7576

0 commit comments

Comments
 (0)