]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
CI: use GitHub output formats (#1046)
authorAarni Koskela <akx@iki.fi>
Mon, 27 Nov 2023 14:37:36 +0000 (16:37 +0200)
committerGitHub <noreply@github.com>
Mon, 27 Nov 2023 14:37:36 +0000 (16:37 +0200)
* CI: use GitHub output format for Ruff

* CI: use pytest-github-actions-annotate-failures too

.github/workflows/ci.yml
tox.ini

index 2c0eaafdfdf0df11e23ffd0bec3c3cb8c13b375e..15f1712d1c1ffeb3949b9b95a86430b39c465dfd 100644 (file)
@@ -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:
@@ -58,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 ec0c9cd6f03945547d31f47f34eda9d5fc709589..f91ba5ba73824332b309206f322cdc391fdf7c96 100644 (file)
--- 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 =