Skip to content

Commit 2a2fa22

Browse files
committed
ci: experimental debug
1 parent b617248 commit 2a2fa22

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,19 @@ jobs:
121121
run: |
122122
.venv/bin/ruff check src_py test
123123
124-
- name: Run pytest (C API backend)
124+
- name: Run pytest (C API backend, non-torch)
125125
working-directory: ladybug/tools/python_api
126126
env:
127127
LBUG_PYTHON_BACKEND: capi
128128
run: |
129-
.venv/bin/python -m pytest -vv ./test
129+
.venv/bin/python -m pytest -vv ./test --ignore=./test/test_torch_geometric.py
130+
131+
- name: Run pytest (C API backend, torch-geometric)
132+
working-directory: ladybug/tools/python_api
133+
env:
134+
LBUG_PYTHON_BACKEND: capi
135+
run: |
136+
.venv/bin/python -c 'import sys; import torch; import pytest; raise SystemExit(pytest.main(["-vv", "./test/test_torch_geometric.py"]))'
130137
131138
python-ci-pybind:
132139
runs-on: ubuntu-latest
@@ -195,10 +202,18 @@ jobs:
195202
make python
196203
cp tools/python_api/src_py/*.py tools/python_api/build/ladybug/
197204
198-
- name: Run pytest (pybind backend)
205+
- name: Run pytest (pybind backend, non-torch)
206+
working-directory: ladybug/tools/python_api
207+
env:
208+
LBUG_PYTHON_BACKEND: pybind
209+
run: |
210+
export PYTHONPATH=./build
211+
.venv/bin/python -m pytest -vv ./test --ignore=./test/test_torch_geometric.py
212+
213+
- name: Run pytest (pybind backend, torch-geometric)
199214
working-directory: ladybug/tools/python_api
200215
env:
201216
LBUG_PYTHON_BACKEND: pybind
202217
run: |
203218
export PYTHONPATH=./build
204-
.venv/bin/python -m pytest -vv ./test
219+
.venv/bin/python -c 'import sys; import torch; import pytest; raise SystemExit(pytest.main(["-vv", "./test/test_torch_geometric.py"]))'

0 commit comments

Comments
 (0)