Skip to content

Commit c49da44

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

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ 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+
git clone https://github.com/nipype/pydra.git /tmp/pydra
69+
pip install -e /tmp/pydra[dev]
6670
- name: Install task package
6771
run: |
6872
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)