Add Codecov integration and update CI workflow
Introduced a .codecov.yml file to configure Codecov settings, updated the CI workflow to include Codecov token and slug, added a Codecov badge to README.md, and adjusted coverage options in pyproject.toml for improved reporting.
This commit is contained in:
1 parent
d2095bb7b4
commit
3d99d7a6db
4 files changed
+38
-5
No files matched your search
@@ -39,15 +39,14 @@ jobs:
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
pytest -v --cov=tzst --cov-report=xml
|
||||
pytest --cov=tzst --cov-branch --cov-report=xml
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
file: ./coverage.xml
|
||||
flags: unittests
|
||||
name: codecov-umbrella
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
slug: xixu-me/tzst
|
||||
|
||||
build:
|
||||
needs: test
|
||||
|
||||
Reference in new issue
Block a user