From b1f365f6e62e6ab23cbf663baa0a6a44ed102cff Mon Sep 17 00:00:00 2001 From: aleguy02 Date: Wed, 1 Oct 2025 23:51:25 -0400 Subject: [PATCH 1/5] update codecov token --- codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index c37e5ec4a09..ec2195eff72 100644 --- a/codecov.yml +++ b/codecov.yml @@ -2,7 +2,7 @@ --- codecov: - token: 1eca3b1f-31a2-4fb8-a8c3-138b441b50a7 #repo token + token: 7326df64-df70-4681-ac10-e7eee7a39bd3 #repo token coverage: status: From b4670f56a023b8370ccf6a92898b3934d0f7526e Mon Sep 17 00:00:00 2001 From: aleguy02 Date: Thu, 2 Oct 2025 00:24:17 -0400 Subject: [PATCH 2/5] Add upload junit to codecov from CI --- .github/workflows/test.yml | 11 +++++++++++ tox.ini | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61125eb2761..a99f6a2f430 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -276,11 +276,15 @@ jobs: - name: Test without coverage if: "! matrix.use_coverage" shell: bash + env: + JUNIT_XML_PATH: junit-${{ matrix.name }}.xml run: tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz` - name: Test with coverage if: "matrix.use_coverage" shell: bash + env: + JUNIT_XML_PATH: junit-${{ matrix.name }}.xml run: tox run -e ${{ matrix.tox_env }}-coverage --installpkg `find dist/*.tar.gz` - name: Generate coverage report @@ -295,6 +299,13 @@ jobs: files: ./coverage.xml verbose: true + - name: Upload JUnit report to Codecov + uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 + with: + fail_ci_if_error: false + files: junit-${{ matrix.name }}.xml + verbose: true + check: # This job does nothing and is only used for the branch protection if: always() diff --git a/tox.ini b/tox.ini index fa86c9c4403..11a2f80f9a7 100644 --- a/tox.ini +++ b/tox.ini @@ -42,8 +42,8 @@ description = under `{basepython}` doctesting: including doctests commands = - {env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:{env:_PYTEST_TOX_DEFAULT_POSARGS:}} - doctesting: {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest + {env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:{env:_PYTEST_TOX_DEFAULT_POSARGS:}} --junitxml={env:JUNIT_XML_PATH} + doctesting: {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest --junitxml={env:JUNIT_XML_PATH} coverage: coverage combine coverage: coverage report -m passenv = @@ -52,6 +52,7 @@ passenv = TERM SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST CI + JUNIT_XML_PATH setenv = _PYTEST_TOX_DEFAULT_POSARGS={env:_PYTEST_TOX_POSARGS_DOCTESTING:} {env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_XDIST:} {env:_PYTEST_FILES:} From 7613bf0e8e32f358955f6b00792b0081ee43688c Mon Sep 17 00:00:00 2001 From: aleguy02 Date: Thu, 2 Oct 2025 00:56:05 -0400 Subject: [PATCH 3/5] Specify upload type --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a99f6a2f430..2cd035083e8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -304,6 +304,7 @@ jobs: with: fail_ci_if_error: false files: junit-${{ matrix.name }}.xml + report_type: test_results verbose: true check: # This job does nothing and is only used for the branch protection From 9f4a4f9d450d3331aa54608a7f97903c933efaef Mon Sep 17 00:00:00 2001 From: aleguy02 Date: Thu, 2 Oct 2025 02:12:14 -0400 Subject: [PATCH 4/5] add name to AUTHORS --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index a5ea37307fe..1ceea03cc09 100644 --- a/AUTHORS +++ b/AUTHORS @@ -14,6 +14,7 @@ Ahn Ki-Wook Akhilesh Ramakrishnan Akiomi Kamakura Alan Velasco +Alejandro Villate Alessio Izzo Alex Jones Alex Lambson From c150df94b852cb42f8d466deafbb9d158ce0b6f3 Mon Sep 17 00:00:00 2001 From: aleguy02 Date: Thu, 2 Oct 2025 02:43:36 -0400 Subject: [PATCH 5/5] restore codecov token --- codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index ec2195eff72..c37e5ec4a09 100644 --- a/codecov.yml +++ b/codecov.yml @@ -2,7 +2,7 @@ --- codecov: - token: 7326df64-df70-4681-ac10-e7eee7a39bd3 #repo token + token: 1eca3b1f-31a2-4fb8-a8c3-138b441b50a7 #repo token coverage: status: