Skip to content

Commit

Permalink
CI: use GitHub output formats (#1046)
Browse files Browse the repository at this point in the history
* CI: use GitHub output format for Ruff

* CI: use pytest-github-actions-annotate-failures too
  • Loading branch information
akx authored Nov 27, 2023
1 parent 8a1eef5 commit 5dff607
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 =
Expand Down

0 comments on commit 5dff607

Please sign in to comment.