CI: only discover tests under tests/.
authorwhitequark <whitequark@whitequark.org>
Fri, 10 Dec 2021 10:45:05 +0000 (10:45 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 20:00:20 +0000 (20:00 +0000)
This avoids a crash importing the deprecated `nmigen` module with
PYTHONWARNINGS=error set.

.github/workflows/main.yaml

index 6bd28668feb2d559b6e0e1a468faff6fbde4d919..ee5f57924d778b6a42aedfcfa5eb335eb0a582ce 100644 (file)
@@ -37,7 +37,7 @@ jobs:
       run: |
         export NMIGEN_USE_YOSYS=builtin YOSYS=yowasp-yosys SBY=yowasp-sby SMTBMC=yowasp-yosys-smtbmc
         export PYTHONWARNINGS=error
-        python -m coverage run -m unittest
+        python -m coverage run -m unittest -t . -s tests
         codecov
   document:
     runs-on: ubuntu-latest