Skip to content

Commit

Permalink
Attempts to publish coverage invo
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Oct 17, 2023
1 parent 76471e8 commit de6ff60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down
6 changes: 6 additions & 0 deletions tests/test_foo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import unittest

class FooTest(unittest.TestCase):
def test_foo(self):
self.assertTrue(True)

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -108,6 +106,8 @@ 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 --source={envsitepackagesdir} -a -m unittest discover {toxinidir}/tests

[coverage:run]
branch = True
Expand Down

0 comments on commit de6ff60

Please sign in to comment.