8000 add github actions workflow for dask tests · nipype/pydra@99dd2f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 99dd2f7

Browse files
committed
add github actions workflow for dask tests
1 parent c277dae commit 99dd2f7

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/testdask.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Dask Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [3.7, 3.8, 3.9, "3.10"]
16+
fail-fast: false
17+
18+
steps:
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
28+
- name: Checkout Pydra repo
29+
uses: actions/checkout@v3
30+
with:
31+
repository: ${{ github.repository }}
32+
33+
- name: Install pydra with Dask and test dependencies
34+
run: |
35+
pip install -e ".[test,dask]"
36+
37+
- name: Run tests
38+
run: |
39+
pytest -v --dask pydra/engine --cov pydra --cov-config .coveragerc --cov-report xml:cov.xml
40+
41+
- name: Upload to codecov
42+
run: codecov -f cov.xml -F unittests -e GITHUB_WORKFLOW

0 commit comments

Comments
 (0)
0