From 8058c809f027190b36672e25d0bb1d49f924871b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20GUICHARD?= Date: Mon, 15 Sep 2025 16:38:06 +0200 Subject: [PATCH 1/3] ci(check): fix libyear in audit --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 12589bc..1f93db1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -79,7 +79,7 @@ jobs: run: | echo "## libyear" >> SUMMARY.md echo "\`\`\`txt" >> SUMMARY.md - uvx --quiet libyear --sort -r requirements.txt &>> SUMMARY.md + uvx --python 3.10 --quiet libyear --sort -r requirements.txt &>> SUMMARY.md echo "\`\`\`" >> SUMMARY.md - name: Job summary run: cat SUMMARY.md >> $GITHUB_STEP_SUMMARY From 7d1ba0c9241674bee4f38b32d9a317bfd4772a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20GUICHARD?= Date: Mon, 15 Sep 2025 16:42:40 +0200 Subject: [PATCH 2/3] ci(check): fix tests-reports path for upload in test --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1f93db1..ac59ebb 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -134,7 +134,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: tests-reports-py${{ matrix.python-version }} - path: tests-reports + path: tests-reports/py* test-report: name: Test report From c920d657edb22feed8509134a3672d34642b7254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20GUICHARD?= Date: Mon, 15 Sep 2025 17:08:33 +0200 Subject: [PATCH 3/3] ci(check): fix coverage data file path in test-report --- .github/workflows/check.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ac59ebb..e561db4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -120,6 +120,8 @@ jobs: strategy: matrix: python-version: ["3.12"] + env: + COVERAGE_FILE: tests-reports/coverage-data steps: - uses: actions/checkout@v4 - uses: astral-sh/setup-uv@v6 @@ -127,14 +129,18 @@ jobs: version: ">=0.8.0" enable-cache: true cache-dependency-glob: "**/pyproject.toml" + python-version: ${{ matrix.python-version }} - name: Run tests - run: uvx --python ${{ matrix.python-version }} --with tox-uv --with tox-gh-actions tox + run: | + uv run --group test pytest \ + --junit-xml=tests-reports/junit-report.xml \ + --cov-report=xml:tests-reports/coverage.xml - name: Upload test and coverage reports if: always() uses: actions/upload-artifact@v4 with: name: tests-reports-py${{ matrix.python-version }} - path: tests-reports/py* + path: tests-reports test-report: name: Test report @@ -175,7 +181,7 @@ jobs: all-reports/**/junit-report.xml - name: Combine coverage reports run: | - uvx --from "coverage[toml]" coverage combine all-reports/**/coverage-py* + uvx --from "coverage[toml]" coverage combine all-reports/**/coverage-data uvx --from "coverage[toml]" coverage xml -o coverage.xml || true uvx --from "coverage[toml]" coverage html -d coverage-site || true uvx --from "coverage[toml]" coverage report --format=markdown >> coverage.md || true