|
| 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 }} |
0 commit comments