8000 CI: Some more updates · nipype/pydra@a0778c8 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0778c8

Browse files
authored
CI: Some more updates
- Add concurrency group - Add permissions - Bump actions/setup-python to v4 - Add OS (Ubuntu and macOS) to test matrix - Streamline job steps for testing
1 parent 2f33d97 commit a0778c8

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/testdask.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,43 @@
1-
name: Dask Tests
1+
name: Dask
22

33
on:
44
push:
55
branches:
66
- master
77
pull_request:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
916
jobs:
1017
test:
11-
name: Test
12-
runs-on: ubuntu-latest
1318
strategy:
1419
matrix:
20+
os: [ubuntu-latest, macos-latest]
1521
python-version: ['3.9', '3.10', '3.11']
1622
fail-fast: false
23+
runs-on: ${{ matrix.os }}
1724

1825
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
26+
- name: Checkout repository
2927
uses: actions/checkout@v3
3028
with:
3129
repository: ${{ github.repository }}
30+
31+
- name: Setup Python version ${{ matrix.python-version }}
32+
uses: actions/setup-python@v4
33+
with:
34+
python-version: ${{ matrix.python-version }}
3235

33-
- name: Install pydra with Dask and test dependencies
36+
- name: Install dependencies for Dask
3437
run: |
3538
pip install -e ".[test,dask]"
3639
37-
- name: Run tests
40+
- name: Run tests for Dask
3841
run: |
3942
pytest -v --dask pydra/engine --cov pydra --cov-config .coveragerc --cov-report xml:cov.xml
4043

0 commit comments

Comments
 (0)
0