diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7f281f..dc097fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,13 @@ jobs: run: | sudo venv/bin/python -m pip install -r requirements.txt sudo venv/bin/python -m pip install pycocotools==2.0.7 - sudo venv/bin/python -m unittest discover tests + sudo venv/bin/python -m pip install coverage + sudo venv/bin/python -m coverage run -m unittest discover tests + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: EMalagoli92/OD-Metrics - name: Mypy run: | sudo venv/bin/python -m pip install mypy @@ -160,4 +166,4 @@ jobs: - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + password: ${{ secrets.PYPI_API_TOKEN }}