Skip to content

Commit 391a077

Browse files
committed
CI: Consolidate find-and-replace target in workflow
1 parent b6d2201 commit 391a077

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
name: Python package
55

6+
# Set once
7+
env:
8+
SUBPACKAGE: TODO
9+
610
on:
711
push:
812
branches: [ master ]
@@ -11,7 +15,6 @@ on:
1115

1216
jobs:
1317
build:
14-
1518
runs-on: ubuntu-latest
1619
strategy:
1720
matrix:
@@ -37,8 +40,8 @@ jobs:
3740
- name: Install task package
3841
run: |
3942
pip install ${{ matrix.pip-flags }} ".[dev]"
40-
python -c "import pydra.tasks.TODO as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
43+
python -c "import pydra.tasks.$SUBPACKAGE as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
4144
python -c "import pydra as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
4245
- name: Test with pytest
4346
run: |
44-
pytest -sv --doctest-modules pydra/tasks/TODO
47+
pytest -sv --doctest-modules pydra/tasks/$SUBPACKAGE

0 commit comments

Comments
 (0)