Skip to content

Commit

Permalink
ci: collect code coverage for install tests
Browse files Browse the repository at this point in the history
Include code coverage for `setup.py`.

Signed-off-by: Benjamin Drung <[email protected]>
  • Loading branch information
bdrung committed Feb 12, 2024
1 parent ed4ae75 commit 6e4aba7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,22 @@ jobs:
run: >
apt-get update &&
apt-get install --no-install-recommends --yes
pandoc python3 python3-ruamel.yaml python3-setuptools
pandoc python3 python3-coverage python3-ruamel.yaml python3-setuptools
- name: Run build
run: python3 setup.py build
run: python3 -m coverage run --branch setup.py build
- name: Run install
run: python3 setup.py install
run: python3 -m coverage run -a --branch setup.py install
- name: Coverage report
run: python3 -m coverage xml
- name: Install dependencies for Codecov
run: >
apt-get install --no-install-recommends --yes
ca-certificates curl git
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
files: ./coverage.xml

unittest:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6e4aba7

Please sign in to comment.