Skip to content

Commit 6502d89

Browse files
Split up push and pull request actions
1 parent e671ebf commit 6502d89

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/python-testing.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
33
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
44

5-
name: Lint and test workflow
5+
name: Lint and test workflow with dry runs
66
on:
77
push:
8-
pull_request:
98
workflow_dispatch:
109

1110
jobs:
@@ -82,7 +81,12 @@ jobs:
8281
- name: Test fidqc feature
8382
run: |
8483
poetry run autoafids test_data/bids_T1w test_out participant --fidqc -np
85-
84+
85+
name: test workflow with wet run
86+
on:
87+
pull_request:
88+
89+
jobs:
8690
wetrun_test:
8791
runs-on: ubuntu-latest
8892
if: github.event_name == 'pull_request'
@@ -114,8 +118,11 @@ jobs:
114118
- name: Wetrun testing
115119
run: |
116120
poetry run autoafids test_data/bids_wetrun_testing test_out participant \
117-
--cores all --force-output --stereotaxy STN --fidqc && \
121+
--cores all --force-output --stereotaxy STN --fidqc | tee autoafids_output.log
122+
123+
- name: Model accuracy check
124+
run: |
118125
poetry run python ./tests/test_fcsv_output.py \
119126
--autoafids_fcsv ./test_out/sub-001/afids-cnn/*.fcsv \
120-
--baseline_fcsv ./test_data/bids_wetrun_testing/sub-001/anat/sub-001*.fcsv
127+
--baseline_fcsv ./test_data/bids_wetrun_testing/sub-001/anat/sub-001*.fcsv | tee test_fcsv_output.log
121128

0 commit comments

Comments
 (0)