Skip to content

Commit

Permalink
ci: upload code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <[email protected]>
  • Loading branch information
FFY00 committed Jun 3, 2024
1 parent 2898f09 commit b5661f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,12 @@ jobs:
with:
python-version: ${{ matrix.python }}
- run: python -m pip install .[test]
- run: python -m pytest --showlocals -vv
- run: python -m pytest --showlocals -vv --cov --cov-report=xml
- uses: codecov/codecov-action@v4
if: always()
env:
PYTHON: ${{ matrix.python }}
with:
flags: tests
env_vars: PYTHON
name: ${{ matrix.os }} - ${{ matrix.python }}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ dependencies = [
[project.optional-dependencies]
test = [
'pytest',
'pytest-cov >= 5',
'pytest-mock >= 2',
'pytest-order >= 1',
'pytest-github-actions-annotate-failures',
Expand Down

0 comments on commit b5661f2

Please sign in to comment.