diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index a1220240a..8a3519c1f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -26,12 +26,13 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install -r requirements.txt - python -m pip install coveragepy==1.6.0 + python -m pip install coverage==7.6.7 - name: Run unit tests run: | cd unit-tests - coverage run --omit=test_*.py,unit_tests.py --source=$(cd .. ; pwd),$(cd ../util ; pwd) -m unittest unit_tests + export PYTHONPATH=$(cd ../util ; pwd):$PYTHONPATH + coverage run --omit=test_*.py,unit_tests.py -m unittest unit_tests - name: Report code coverage run: |