-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (47 loc) · 1.82 KB
/
Copy pathtest_pipeline_default.yml
File metadata and controls
58 lines (47 loc) · 1.82 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
name: Test Pipeline from NWB
on:
pull_request:
branches: [main]
types: [synchronize, opened, reopened]
env:
NXF_SYNTAX_PARSER: v1
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Free up disk space
run: |
echo "Before cleanup:"
df -h
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/hostedtoolcache
echo "After cleanup:"
df -h
- name: Install packages
run: |
python -m pip install --upgrade pip
pip install $(grep -E '^(spikeinterface|neuroconv|pynwb)==' environment/requirements.txt | sed 's/^spikeinterface==/spikeinterface[full]==/' | tr '\n' ' ')
- name: Generate test NWB files
run: |
python sample_dataset/create_test_nwb.py
- name: Set up Nextflow
uses: nf-core/setup-nextflow@v1
with:
version: latest-stable
- name: Run Nextflow pipeline
run: |
DATA_PATH="$(pwd)/sample_dataset/nwb" RESULTS_PATH="$(pwd)/sample_dataset/nwb_results" \
nextflow -C "$(pwd)/.github/workflows/nextflow_test.config" run pipeline/main_multi_backend.nf \
--params_file "$(pwd)/.github/workflows/params_test_default.json"
- name: Check pipeline results
run: |
python "$(pwd)/tests/check_pipeline_results.py" --results-path "$(pwd)/sample_dataset/nwb_results" \
--data-path "$(pwd)/sample_dataset/nwb" --num-streams 3 --num-success 2 --num-nwb 1