diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 13ffbbd1..b846677f 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -5,13 +5,21 @@ 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