+
Skip to content

GitHub action for nightly tests with Nextflow from source #3553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/nextflow-source-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Test with Nextflow from source

on:
workflow_dispatch: # Manual trigger
schedule:
# Run at 00:00 UTC on Monday, Wednesday, Friday (2:00 CEST)
- cron: "0 0 * * 1,3,5"

jobs:
test-with-nextflow-source:
runs-on: ubuntu-latest
env:
NXF_ANSI_LOG: false

steps:
- name: Check out Nextflow
uses: actions/checkout@v4
with:
repository: nextflow-io/nextflow
path: nextflow

- uses: actions/checkout@v4
name: Check out nf-core/tools
with:
ref: dev
path: nf-core-tools

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
cache-dependency-path: nf-core-tools/pyproject.toml

- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"

- name: Build Nextflow
run: |
cd nextflow
./gradlew compile
chmod +x nextflow
echo "$(pwd)" >> $GITHUB_PATH
nextflow -version

- name: Install nf-core/tools
run: |
cd nf-core-tools
python -m pip install --upgrade pip
pip install .

- name: Create new pipeline
run: nf-core pipelines create -n testpipeline -d "This pipeline is for testing" -a "Testing McTestface"

- name: Run new pipeline
run: nextflow run nf-core-testpipeline -profile docker,test --outdir ./results

- name: Send email on failure
if: failure()
uses: dsfx3d/action-aws-ses@v1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "eu-west-1"
with:
# to: nextflow-nightly-test-aaaaqbupbi4ikkrdg6b3bemnoq@nfcore.slack.com
to: infrastructure@nf-co.re
from: core@nf-co.re
subject: "Nextflow source test CI failed"
body: |
The Nextflow source test CI workflow failed!

See the failed run here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
- switch to using runsOn runners in nf-core/tools repo ([#3537](https://github.com/nf-core/tools/pull/3537))
- Handling issue with arity #3530 ([#3539](https://github.com/nf-core/tools/pull/3539))
- chore(deps): update actions/github-script action to v7 ([#3545](https://github.com/nf-core/tools/pull/3545))
- GitHub action for nightly tests with Nextflow from source ([#3553](https://github.com/nf-core/tools/pull/3553))

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

Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载