CI: install pyusb before the tests
tests/test_capture.py builds a DirectSniffer, whose lazy import reaches simtrace2_pysniff.device -> usb.core; the runner has no PyUSB, so two tests failed there while passing on a workstation that already had it. The job now installs the declared runtime dependency next to build.
This commit is contained in:
1 parent
0b3c483c0b
commit
b19abbd514
1 file changed
+2
-2
@@ -36,8 +36,8 @@ jobs:
|
||||
fi
|
||||
grep -q "PWA_VERSION = '$version'" frontend/index.html
|
||||
|
||||
- name: Install build tooling
|
||||
run: python -m pip install --upgrade pip build
|
||||
- name: Install build tooling and the runtime dependency
|
||||
run: python -m pip install --upgrade pip pyusb build
|
||||
|
||||
- name: Python tests
|
||||
run: python -m unittest discover -s tests
|
||||
|
||||
Reference in new issue
Block a user