Skip to content

Commit f777602

Browse files
committed
[ci-cd] avoid AttributeError when accessing pydra.__version__
1 parent 2d97098 commit f777602

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/ci-cd.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ jobs:
4040
- name: Install Pydra
4141
run: |
4242
pip install ${{ matrix.pydra }}
43-
python -c "import pydra as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
43+
python -c "import pydra as m; print(f'{m.__name__} {getattr(m, '__version__', 'no version')} @ {m.__file__}')"
4444
- name: Install task package
4545
run: |
4646
pip install ${{ matrix.pip-flags }} ".[dev]"
4747
python -c "import pydra.workers.oar as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
48-
python -c "import pydra as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
4948
5049
test:
5150
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)