add codecov integration

This commit is contained in:
Saurabh Misra 2024-12-09 12:17:16 -08:00
parent 74db4cf8f1
commit 09d28b3803
2 changed files with 7 additions and 1 deletions

View file

@ -34,4 +34,9 @@ jobs:
poetry install
- name: Unit tests
run: |
poetry run pytest tests/
poetry run pytest tests/ --cov --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
if: matrix.python-version == 3.12
with:
token: ${{ secrets.CODECOV_TOKEN }}

View file

@ -118,6 +118,7 @@ types-cffi = ">=1.16.0.20240331"
types-openpyxl = ">=3.1.5.20241020"
types-regex = ">=2024.9.11.20240912"
types-python-dateutil = ">=2.9.0.20241003"
pytest-cov = "^6.0.0"
[tool.poetry.build]
script = "codeflash/update_license_version.py"