Skip to content

Commit

Permalink
Add coverage dumping to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Argmaster committed Sep 3, 2023
1 parent a33f630 commit 37a0688
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]

env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}

runs-on: ${{ matrix.os }}

steps:
Expand All @@ -62,3 +66,15 @@ jobs:

- name: Run unit tests
run: poetry run poe run-unit-tests

- name: Dump coverage
run: poetry run coverage xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
flags: unittests
files: ./coverage.xml
verbose: true

0 comments on commit 37a0688

Please sign in to comment.