diff options
author | umarcor <unai.martinezcorral@ehu.eus> | 2021-01-01 04:18:15 +0100 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-01-01 11:19:04 +0100 |
commit | fad4d10f4ab0f8700d111dbefb9e036b19576125 (patch) | |
tree | 30ec1d91bfbe9500f0da014bcfb4796a25354348 | |
parent | ff6c17f5880428fe176c871c255222c7b7ae9879 (diff) | |
download | ghdl-fad4d10f4ab0f8700d111dbefb9e036b19576125.tar.gz ghdl-fad4d10f4ab0f8700d111dbefb9e036b19576125.tar.bz2 ghdl-fad4d10f4ab0f8700d111dbefb9e036b19576125.zip |
coverage: run pyunit directly
-rw-r--r-- | .github/workflows/push.yml | 7 | ||||
-rwxr-xr-x | testsuite/testsuite.sh | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index db1ca813b..26f4d7c2d 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -294,11 +294,8 @@ jobs: pacman --noconfirm -U artifact/mingw-w64-x86_64-ghdl-llvm-*.zst pip3 install -r testsuite/requirements.txt - - name: Test package - run: | - GHDL=ghdl \ - PYTEST_ARGS='--cov=.. --cov-config=.coveragerc' \ - ./testsuite/testsuite.sh pyunit + - name: Run tests to generate coverage report + run: PYTHONPATH=$(pwd)/.. python3 -m pytest -rA --cov=.. --cov-config=.coveragerc testsuite/pyunit #--- diff --git a/testsuite/testsuite.sh b/testsuite/testsuite.sh index d56d78ffe..f62d9e577 100755 --- a/testsuite/testsuite.sh +++ b/testsuite/testsuite.sh @@ -141,7 +141,7 @@ do_gna () { # The Python Unit testsuite: regression testsuite for Python bindings to libghdl do_pyunit () { gstart "[GHDL - test] pyunit" - PYTHONPATH=$(pwd)/.. python3 -m pytest -rA $PYTEST_ARGS pyunit + PYTHONPATH=$(pwd)/.. python3 -m pytest -rA pyunit gend } |