Skip to content

Commit 5dff607

Browse files
authored
CI: use GitHub output formats (#1046)
* CI: use GitHub output format for Ruff * CI: use pytest-github-actions-annotate-failures too
1 parent 8a1eef5 commit 5dff607

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: pre-commit/[email protected]
21+
env:
22+
RUFF_OUTPUT_FORMAT: github
2123
test:
2224
runs-on: ${{ matrix.os }}
2325
strategy:
@@ -58,6 +60,7 @@ jobs:
5860
run: tox --skip-missing-interpreters
5961
env:
6062
COVERAGE_XML_PATH: ${{ runner.temp }}
63+
BABEL_TOX_EXTRA_DEPS: pytest-github-actions-annotate-failures
6164
- uses: codecov/codecov-action@v3
6265
with:
6366
directory: ${{ runner.temp }}

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ envlist =
1010
extras =
1111
dev
1212
deps =
13+
{env:BABEL_TOX_EXTRA_DEPS:}
1314
backports.zoneinfo;python_version<"3.9"
1415
tzdata;sys_platform == 'win32'
1516
pytz: pytz
@@ -23,6 +24,8 @@ passenv =
2324
BABEL_*
2425
PYTEST_*
2526
PYTHON_*
27+
# To let pytest-github-actions-annotate-failures know it's running in GitHub Actions:
28+
GITHUB_ACTIONS
2629

2730
[gh-actions]
2831
python =

0 commit comments

Comments
 (0)