Skip to content

Commit

Permalink
fix code cov (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-z10 authored Mar 26, 2024
1 parent 55d8894 commit c38d097
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
os: [ubuntu-latest, macos-latest]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v4
Expand All @@ -42,8 +46,13 @@ jobs:
poetry run flake8 ./src --count --exit-zero
- name: Test with pytest
run: |
poetry run pytest -v --cov src/pygmssl
poetry run pytest --cov=src/pygmssl --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
env_vars: OS,PYTHON
fail_ci_if_error: true # optional (default = false)
flags: unittests
name: codecov-umbrella # optional
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true # optional (default = false)

0 comments on commit c38d097

Please sign in to comment.