diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2f37efa..364e1e6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -31,3 +31,36 @@ jobs: run: | tox -r -e $(echo "${{ matrix.python }}" | tr -d .) mv .coverage .coverage.${{ matrix.python }} + + - name: Upload coverage + uses: actions/upload-artifact@v4 + with: + name: coverage-${{ matrix.python }} + path: .coverage.${{ matrix.python }} + retention-days: 1 + + coverage: + name: Compute Coverage + runs-on: ubuntu-latest + needs: test + container: + image: danielflook/python-minifier-build:python3.13-2024-09-15 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 1 + fetch-tags: 'true' + show-progress: 'false' + + - name: Download coverage + uses: actions/download-artifact@v4 + with: + pattern: coverage-* + merge-multiple: true + + - name: Coverage Report + run: | + pip install coverage + coverage combine + coverage report --format markdown