Skip to content

Commit

Permalink
coverage - using flags for tests/
Browse files Browse the repository at this point in the history
  • Loading branch information
commonism committed Nov 11, 2023
1 parent 63b4b2e commit b5ec66e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,33 @@ jobs:
- name: Generate coverage report (default)
run: |
pdm run pytest --cov=aiopenapi3/ --cov-report=xml:./coverage/reports/coverage-default.xml tests/
pdm run pytest --cov=tests/ --cov-report=xml:./coverage/reports/coverage-default-tests.xml tests/
- name: install optional deps
run: |
pdm install -G auth,socks
- name: Generate coverage report (options)
run: |
pdm run pytest --cov=aiopenapi3/ --cov-report=xml:./coverage/reports/coverage-optional.xml tests/
- name: Upload coverage to Codecov
pdm run pytest --cov=tests/ --cov-report=xml:./coverage/reports/coverage-optional-tests.xml tests/
- name: Upload coverage to Codecov (core)
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
files: coverage-default.xml,coverage-optional.xml
env_vars: OS,PYTHON
fail_ci_if_error: false
flags: unittests
flags: core
name: codecov-aiopenapi3
path_to_write_report: ./coverage/codecov_report.txt
verbose: true
- name: Upload coverage to Codecov (tests)
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
files: coverage-default-tests.xml,coverage-optional-tests.xml
env_vars: OS,PYTHON
fail_ci_if_error: false
flags: tests
name: codecov-aiopenapi3-tests
verbose: true

0 comments on commit b5ec66e

Please sign in to comment.