-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.47 KB
/
nextflow-test-conda.yml
File metadata and controls
61 lines (51 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Nextflow Test Pipeline Conda
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.9
channels: conda-forge,bioconda,defaults
channel-priority: strict
- name: Install Nextflow
run: |
curl -s https://get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
nextflow -version
- name: Run Nextflow pipeline
run: |
nextflow run main.nf -profile test -with-conda
- name: Check test completion and details
run: |
# Check if the test.passed file was created
if [ ! -f "results/test/test.passed" ]; then
echo "ERROR: Test completion file 'results/test/test.passed' not found"
echo "Test pipeline did not complete successfully"
exit 1
fi
echo "✅ Test completed successfully!"
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: nextflow-test-results
path: |
results/
.nextflow.log
retention-days: 7