Skip to content

Commit eda5f50

Browse files
committed
Fix conflicts
2 parents a901d0e + 6069089 commit eda5f50

File tree

602 files changed

+104730
-537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

602 files changed

+104730
-537
lines changed

.github/include.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
".":
2+
- ./.github/workflows/**
3+
- ./nf-test.config
4+
- ./nextflow.config
5+
tests:
6+
- ./assets/*
7+
- ./bin/*
8+
- ./conf/*
9+
- ./main.nf
10+
- ./nextflow_schema.json

.github/workflows/awsfulltest.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/awstest.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 86 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,79 @@
11
name: nf-core CI
22
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors
33
on:
4-
push:
5-
branches:
6-
- dev
74
pull_request:
85
release:
96
types: [published]
107
workflow_dispatch:
118

129
env:
10+
NFT_DIFF: "pdiff"
11+
NFT_DIFF_ARGS: "--line-numbers --width 120 --expand-tabs=2"
12+
NFT_VER: "0.9.0"
13+
NFT_WORKDIR: "~"
1314
NXF_ANSI_LOG: false
1415
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
1516
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
1617

1718
concurrency:
1819
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
1920
cancel-in-progress: true
20-
2121
jobs:
22+
nf-test-changes:
23+
name: Check for changes
24+
runs-on: ubuntu-latest
25+
outputs:
26+
nf_test_files: ${{ steps.list.outputs.components }}
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
32+
- name: List nf-test files
33+
id: list
34+
uses: adamrtalbot/[email protected]
35+
with:
36+
head: ${{ github.sha }}
37+
base: origin/${{ github.base_ref }}
38+
include: .github/include.yaml
39+
40+
- name: print list of nf-test files
41+
run: |
42+
echo ${{ steps.list.outputs.components }}
43+
2244
test:
23-
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})"
24-
# Only run on push if this is the nf-core dev branch (merged PRs)
25-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq') }}"
45+
name: "Run tests (${{ matrix.nf_test_files }} ${{ matrix.profile }} NF-${{ matrix.NXF_VER }})"
46+
needs: [nf-test-changes]
47+
if: needs.nf-test-changes.outputs.nf_test_files != '[]'
2648
runs-on: ubuntu-latest
2749
strategy:
50+
fail-fast: false
2851
matrix:
2952
NXF_VER:
3053
- "24.04.2"
31-
- "latest-everything"
54+
nf_test_files: ["${{ fromJson(needs.nf-test-changes.outputs.nf_test_files) }}"]
3255
profile:
33-
- "conda"
3456
- "docker"
3557
- "singularity"
36-
test_name:
37-
- "test"
3858
isMaster:
3959
- ${{ github.base_ref == 'master' }}
4060
# Exclude conda and singularity on dev
4161
exclude:
42-
- isMaster: false
43-
profile: "conda"
4462
- isMaster: false
4563
profile: "singularity"
64+
- NXF_VER: "latest-everything"
65+
profile: "singularity"
4666
steps:
4767
- name: Check out pipeline code
4868
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4969
with:
5070
fetch-depth: 0
5171

72+
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
73+
with:
74+
distribution: "temurin"
75+
java-version: "17"
76+
5277
- name: Set up Nextflow
5378
uses: nf-core/setup-nextflow@v2
5479
with:
@@ -64,24 +89,59 @@ jobs:
6489
mkdir -p $NXF_SINGULARITY_CACHEDIR
6590
mkdir -p $NXF_SINGULARITY_LIBRARYDIR
6691
67-
- name: Set up Miniconda
68-
if: matrix.profile == 'conda'
69-
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3
92+
- name: Install nf-test
93+
uses: nf-core/setup-nf-test@v1
7094
with:
71-
miniconda-version: "latest"
72-
auto-update-conda: true
73-
conda-solver: libmamba
74-
channels: conda-forge,bioconda
95+
version: ${{ env.NFT_VER }}
7596

76-
- name: Set up Conda
77-
if: matrix.profile == 'conda'
97+
- uses: actions/setup-python@v4
98+
with:
99+
python-version: "3.11"
100+
architecture: "x64"
101+
102+
- name: Install pdiff to see diff between nf-test snapshots
78103
run: |
79-
echo $(realpath $CONDA)/condabin >> $GITHUB_PATH
80-
echo $(realpath python) >> $GITHUB_PATH
104+
python -m pip install --upgrade pip
105+
pip install pdiff
81106
82107
- name: Clean up Disk space
83108
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
84109

85-
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
110+
- name: Run nf-test
111+
run: |
112+
nf-test test --verbose ${{ matrix.nf_test_files }} --profile "+${{ matrix.profile }}" --junitxml=test.xml --tap=test.tap
113+
114+
- uses: pcolby/tap-summary@v1
115+
with:
116+
path: >-
117+
test.tap
118+
119+
- name: Output log on failure
120+
if: failure()
121+
run: |
122+
sudo apt install bat > /dev/null
123+
batcat --decorations=always --color=always ${{ github.workspace }}/.nf-test/tests/*/meta/nextflow.log
124+
125+
- name: Publish Test Report
126+
uses: mikepenz/action-junit-report@v3
127+
if: always() # always run even if the previous step fails
128+
with:
129+
report_paths: test.xml
130+
131+
confirm-pass:
132+
runs-on: ubuntu-latest
133+
needs: [test]
134+
if: always()
135+
steps:
136+
- name: All tests ok
137+
if: ${{ !contains(needs.*.result, 'failure') }}
138+
run: exit 0
139+
- name: One or more tests failed
140+
if: ${{ contains(needs.*.result, 'failure') }}
141+
run: exit 1
142+
143+
- name: debug-print
144+
if: always()
86145
run: |
87-
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test_name }},${{ matrix.profile }} --outdir ./results
146+
echo "toJSON(needs) = ${{ toJSON(needs) }}"
147+
echo "toJSON(needs.*.result) = ${{ toJSON(needs.*.result) }}"
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: full-sized tests on cloud providers
2+
run-name: Submitting workflow to all cloud providers using full sized data
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
platform:
9+
description: "Platform to run test"
10+
required: true
11+
default: "all"
12+
type: choice
13+
options:
14+
- all
15+
- aws
16+
- azure
17+
- gcp
18+
jobs:
19+
run-full-tests-on-aws:
20+
if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'aws' || !github.event.inputs }}
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
aligner: ["star_salmon", "star_rsem"]
25+
steps:
26+
- uses: seqeralabs/action-tower-launch@v2
27+
with:
28+
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
29+
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
30+
compute_env: ${{ secrets.TOWER_CE_AWS_CPU }}
31+
workdir: "${{ secrets.TOWER_BUCKET_AWS }}/work/rnaseq/work-${{ github.sha }}"
32+
run_name: "aws_rnaseq_full_${{ matrix.aligner }}"
33+
revision: ${{ github.sha }}
34+
profiles: test_full_aws
35+
parameters: |
36+
{
37+
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}",
38+
"aligner": "${{ matrix.aligner }}",
39+
"outdir": "${{ secrets.TOWER_BUCKET_AWS }}/rnaseq/results-${{ github.sha }}/aligner_${{ matrix.aligner }}/"
40+
}
41+
- uses: actions/upload-artifact@v3
42+
with:
43+
name: Tower debug log file
44+
path: tower_action_*.log
45+
46+
run-full-tests-on-azure:
47+
if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'azure' || !github.event.inputs }}
48+
runs-on: ubuntu-latest
49+
strategy:
50+
matrix:
51+
aligner: ["star_salmon", "star_rsem"]
52+
steps:
53+
- uses: seqeralabs/action-tower-launch@v2
54+
with:
55+
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
56+
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
57+
compute_env: ${{ secrets.TOWER_CE_AZURE_CPU }}
58+
workdir: "${{ secrets.TOWER_BUCKET_AZURE }}/work/rnaseq/work-${{ github.sha }}"
59+
run_name: "azure_rnaseq_full_${{ matrix.aligner }}"
60+
revision: ${{ github.sha }}
61+
profiles: test_full_azure
62+
parameters: |
63+
{
64+
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}",
65+
"aligner": "${{ matrix.aligner }}",
66+
"outdir": "${{ secrets.TOWER_BUCKET_AZURE }}/rnaseq/results-${{ github.sha }}/aligner_${{ matrix.aligner }}/",
67+
"igenomes_base": "${{ secrets.TOWER_IGENOMES_BASE_AZURE }}"
68+
}
69+
- uses: actions/upload-artifact@v3
70+
with:
71+
name: Tower debug log file
72+
path: tower_action_*.log
73+
74+
run-full-tests-on-gcp:
75+
if: ${{ github.event.inputs.platform == 'gcp' || !github.event.inputs }}
76+
runs-on: ubuntu-latest
77+
strategy:
78+
matrix:
79+
aligner: ["star_salmon", "star_rsem"]
80+
steps:
81+
- uses: seqeralabs/action-tower-launch@v2
82+
with:
83+
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
84+
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
85+
compute_env: ${{ secrets.TOWER_CE_GCP_CPU }}
86+
workdir: "${{ secrets.TOWER_BUCKET_GCP }}/work/rnaseq/work-${{ github.sha }}"
87+
run_name: "gcp_rnaseq_full_${{ matrix.aligner }}"
88+
revision: ${{ github.sha }}
89+
profiles: test_full_gcp
90+
parameters: |
91+
{
92+
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}",
93+
"aligner": "${{ matrix.aligner }}",
94+
"outdir": "${{ secrets.TOWER_BUCKET_GCP }}/rnaseq/results-${{ github.sha }}/aligner_${{ matrix.aligner }}/"
95+
}
96+
- uses: actions/upload-artifact@v3
97+
with:
98+
name: Tower debug log file
99+
path: tower_action_*.log

0 commit comments

Comments
 (0)