diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 4f297694..10074134 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -96,7 +96,7 @@ jobs: # Apparently, patching os.readlink in unit tests interferes with # finding some source files, but our source shouldn't be affected, so # ignore these errors. - coverage json --ignore-errors -o coverage.json + coverage json -o coverage.json - name: Upload coverage information if: ${{ always() && github.event.repository.owner.login == 'alisw' }} diff --git a/tox.ini b/tox.ini index ed710071..ee2e406f 100644 --- a/tox.ini +++ b/tox.ini @@ -76,8 +76,6 @@ commands = coverage run --source={toxinidir} -a {toxinidir}/aliBuild version - coverage run --source={toxinidir} -a -m unittest discover {toxinidir}/tests - git clone -b O2-v1.3.0 --depth 1 https://github.com/alisw/alidist coverage run --source={toxinidir} -a {toxinidir}/aliBuild -a {env:ARCHITECTURE} -z test-init init zlib @@ -108,6 +106,7 @@ commands = coverage run --source={toxinidir} -a {toxinidir}/aliBuild init zlib touch zlib/foo coverage run --source={toxinidir} -a {toxinidir}/aliBuild -a {env:ARCHITECTURE} --no-system --disable GCC-Toolchain build zlib + coverage run --source={toxinidir} -a -m unittest discover {toxinidir}/tests [coverage:run] branch = True