From 4c3e7aa9f2c744c62786bba05ab78d24f5375b39 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Mon, 27 Nov 2023 15:34:51 +0200 Subject: [PATCH 1/2] CI: use GitHub output format for Ruff --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c0eaafdf..aa7d3a04f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: pre-commit/action@v3.0.0 + env: + RUFF_OUTPUT_FORMAT: github test: runs-on: ${{ matrix.os }} strategy: From f6e110144f2df0a79c9aef484e466681d6a28ca5 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Mon, 27 Nov 2023 15:40:30 +0200 Subject: [PATCH 2/2] CI: use pytest-github-actions-annotate-failures too --- .github/workflows/ci.yml | 1 + tox.ini | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa7d3a04f..15f1712d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,6 +60,7 @@ jobs: run: tox --skip-missing-interpreters env: COVERAGE_XML_PATH: ${{ runner.temp }} + BABEL_TOX_EXTRA_DEPS: pytest-github-actions-annotate-failures - uses: codecov/codecov-action@v3 with: directory: ${{ runner.temp }} diff --git a/tox.ini b/tox.ini index ec0c9cd6f..f91ba5ba7 100644 --- a/tox.ini +++ b/tox.ini @@ -10,6 +10,7 @@ envlist = extras = dev deps = + {env:BABEL_TOX_EXTRA_DEPS:} backports.zoneinfo;python_version<"3.9" tzdata;sys_platform == 'win32' pytz: pytz @@ -23,6 +24,8 @@ passenv = BABEL_* PYTEST_* PYTHON_* + # To let pytest-github-actions-annotate-failures know it's running in GitHub Actions: + GITHUB_ACTIONS [gh-actions] python =