Skip to content

Commit

Permalink
GitHub Actions: move Ruff output configuration to env
Browse files Browse the repository at this point in the history
The `--format=github` option was removed in astral-sh/ruff#7984.
  • Loading branch information
acdha committed Oct 16, 2023
1 parent 6642435 commit a99faeb
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,29 @@ on:
pull_request:
branches: [master]
jobs:
ruff: # https://beta.ruff.rs
ruff: # https://docs.astral.sh/ruff/editor-integrations/#github-actions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip install --user "codespell[toml]" ruff
- run: codespell
- run: ruff --format=github .
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: |
python -m pip install --upgrade pip
pip install --user "codespell[toml]" ruff
- run: codespell
- run: ruff check .
env:
RUFF_FORMAT: github

tox:
needs: ruff
strategy:
fail-fast: false
max-parallel: 6
matrix:
python: ['3.8', '3.9', '3.10', '3.11']
python: ["3.8", "3.9", "3.10", "3.11", "pypy3.10"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit a99faeb

Please sign in to comment.