From 7ad6bbe73f57419fc4499e37e06bb5e2ec664fe1 Mon Sep 17 00:00:00 2001 From: juftin Date: Tue, 9 Jan 2024 21:35:22 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20codecov?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tests.yaml | 7 ++++++- README.md | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4c2582b..b53efdc 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -126,5 +126,10 @@ jobs: - name: Test Suite run: | echo "::add-matcher::.github/workflows/matchers/python.json" - hatch run ${{ matrix.matrix }} ${{ matrix.command }} + hatch run ${{ matrix.matrix }} ${{ matrix.command }} --cov-report=xml tests/ -vv echo "::remove-matcher owner=python::" + - name: Upload coverage reports to Codecov + if: matrix.os == 'ubuntu-latest' && matrix.python == '3.11' && matrix.command == 'matrix:cov' + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index 62b6d7f..64dd52c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ PyPI PyPI - Python Version GitHub License + Testing Status + Hatch project Pip Tools project Ruff