8000 update testdask.yml to run each test file as a separate job · nipype/pydra@17d28bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 17d28bc

Browse files
committed
update testdask.yml to run each test file as a separate job
1 parent f10d4e2 commit 17d28bc

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

.github/workflows/testdask.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,33 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [3.7, 3.8, 3.9, "3.10"]
15+
test-name:
16+
- test_boutiques
17+
- test_dockertask
18+
- test_graph
19+
- test_helpers
20+
- test_helpers_file
21+
- test_helpers_state
22+
- test_nipype1_convert
23+
- test_node_task
24+
- test_numpy_examples
25+
- test_profiles
26+
- test_shelltask
27+
- test_shelltask_inputspec
28+
- test_singularity
29+
- test_specs
30+
- test_state
31+
- test_submitter
32+
- test_task
33+
- test_tasks_files
34+
- test_workflow
1635
fail-fast: false
1736

1837
steps:
19-
- name: Set up Python ${{ matrix.python-version }}
38+
- name: Set up Python 3.9
2039
uses: actions/setup-python@v2
2140
with:
22-
python-version: ${{ matrix.python-version }}
41+
python-version: 3.9
2342

2443
- name: Install dependencies
2544
run: |
@@ -36,7 +55,7 @@ jobs:
3655
3756
- name: Run tests
3857
run: |
39-
pytest -v --dask pydra/engine --cov pydra --cov-config .coveragerc --cov-report xml:cov.xml
58+
pytest -v --dask pydra/engine/tests/${{ matrix.test-name }}.py --cov pydra --cov-config .coveragerc --cov-report xml:cov.xml
4059
4160
- name: Upload to codecov
42-
run: codecov -f cov.xml -F unittests -e GITHUB_WORKFLOW
61+
run: codecov -f cov.xml -F unittests -e GITHUB_WORKFLOW

0 commit comments

Comments
 (0)
0