diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5073223..9f33ea7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,4 +21,8 @@ jobs: - name: Init environment run: poetry install - name: Unit tests - run: poetry run pytest tests + run: poetry run coverage run --branch -m pytest tests + - name: Write coverage report + run: poetry run coverage xml + - name: Send coverage to Codecov + run: bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index db2d0a9..c9b945a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # FixedCal [![CI](https://github.com/PyryL/fixedcal/actions/workflows/main.yml/badge.svg)](https://github.com/PyryL/fixedcal/actions) +[![codecov](https://codecov.io/gh/PyryL/fixedcal/branch/main/graph/badge.svg?token=ZMYYLBUPNA)](https://codecov.io/gh/PyryL/fixedcal) Python package for international fixed calendar dates.