Skip to content

Commit fd2d94c

Browse files
committed
[ci-cd] install pydra from source to support internal test imports
1 parent 76e9d36 commit fd2d94c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
- name: Install build dependencies
6464
run: |
6565
python -m pip install --upgrade pip
66+
- name: Install Pydra from source for test imports
67+
run: |
68+
pip install --upgrade git+https://github.com/nipype/pydra.git#egg=pydra
6669
- name: Install task package
6770
run: |
6871
pip install ".[test]"

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
def pytest_generate_tests(metafunc):
1515
return pydra_conftest.pytest_generate_tests(metafunc)
1616

17-
except (ImportError, AttributeError):
18-
pass
17+
except (ImportError, AttributeError, ModuleNotFoundError) as e:
18+
print(f"Warning: could not import test fixtures from pydra: {e}")

0 commit comments

Comments
 (0)