From b509f0f51979d54f12bd377fc329800a53d02cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 10 Mar 2024 17:32:15 +0100 Subject: [PATCH 1/3] Use codecov GitHub action --- .github/workflows/ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 750ca65..96d09a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,7 +89,6 @@ jobs: ${{ matrix.python }} -m pip install -U pip setuptools wheel virtualenv tox tox-gh-actions - name: "Run tox targets for ${{ matrix.python-version }}" run: "${{ matrix.python }} -m tox" - - name: "Codecov" - run: | - ${{ matrix.python }} -m pip install codecov - codecov --token ${{ secrets.CODECOV_TOKEN }} + - uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} From 026e27d061f8113aca44128c65063547564c3cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 10 Mar 2024 17:38:39 +0100 Subject: [PATCH 2/3] Generate xml coverate report, for codecov --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 2f8b6a2..3597a69 100644 --- a/tox.ini +++ b/tox.ini @@ -17,7 +17,7 @@ python = extras = test usedevelop = false commands = - pytest -n auto --cov --cov-branch --cov-report=html --cov-report=term {posargs} + pytest -n auto --cov --cov-branch --cov-report=xml --cov-report=html --cov-report=term {posargs} [testenv:py27] # run only helper scripts tests on python 2 From 98eec058a8c3d5f01630a24a76d4232d4ef71fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 10 Mar 2024 17:47:49 +0100 Subject: [PATCH 3/3] Use tox usedevelop=true, so coverage works --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 3597a69..d3d3dd6 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ python = [testenv] extras = test -usedevelop = false +usedevelop = true commands = pytest -n auto --cov --cov-branch --cov-report=xml --cov-report=html --cov-report=term {posargs}