From e817f7ca7a7a0c1ba346b59a753c04c1885311b4 Mon Sep 17 00:00:00 2001 From: Johannes Maron Date: Tue, 27 Oct 2026 16:18:32 +0100 Subject: [PATCH] Annotate test failures in CI Add the pytest-github-actions-annotate-failures plugin to every pytest invocation via uv --with. The plugin is not added to project dependencies or lockfiles. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd04bea..552dd67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: - uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python-version }} - - run: uv run ${{ matrix.extras }} --with django~=${{ matrix.django-version }}.0 pytest + - run: uv run --with=pytest-github-actions-annotate-failures ${{ matrix.extras }} --with django~=${{ matrix.django-version }}.0 pytest - uses: codecov/codecov-action@v7 with: use_oidc: true @@ -64,7 +64,7 @@ jobs: - uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python-version }} - - run: uv run --with django~=${{ matrix.django-version }}.0 pytest + - run: uv run --with=pytest-github-actions-annotate-failures --with django~=${{ matrix.django-version }}.0 pytest - uses: codecov/codecov-action@v7 with: use_oidc: true