File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test Default Nextflow Pipeline
2+
3+ on :
4+ pull_request :
5+ branches : [main]
6+ types : [synchronize, opened, reopened]
7+
8+ env :
9+ NXF_SYNTAX_PARSER : v1
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : " 3.11"
23+
24+ - name : Free up disk space
25+ run : |
26+ echo "Before cleanup:"
27+ df -h
28+ sudo rm -rf /usr/local/lib/android
29+ sudo rm -rf /opt/ghc
30+ sudo rm -rf /usr/share/dotnet
31+ sudo rm -rf /opt/hostedtoolcache
32+ echo "After cleanup:"
33+ df -h
34+
35+ - name : Install packages
36+ run : |
37+ python -m pip install --upgrade pip
38+ pip install spikeinterface neuroconv "pynwb<3" "hdmf<5"
39+
40+ - name : Generate test NWB files
41+ run : |
42+ python sample_dataset/create_test_nwb.py
43+
44+ - name : Set up Nextflow
45+ uses : nf-core/setup-nextflow@v1
46+ with :
47+ version : latest-stable
48+
49+ - name : Run Nextflow pipeline
50+ run : |
51+ DATA_PATH="$(pwd)/sample_dataset/nwb" RESULTS_PATH="$(pwd)/sample_dataset/nwb/results" \
52+ nextflow -C "$(pwd)/.github/workflows/nextflow_test.config" run pipeline/main_multi_backend.nf \
53+ --params_file "$(pwd)/.github/workflows/params_test_default.json"
You can’t perform that action at this time.
0 commit comments