chore: enable ruff ALL (#984) #1914
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/test.yml" | |
| - "**.py" | |
| push: | |
| paths: | |
| - ".github/workflows/test.yml" | |
| - "**.py" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| env: | |
| FORCE_COLOR: 1 | |
| jobs: | |
| test: | |
| name: ${{ matrix.os }} / ${{ matrix.python_version }} | |
| runs-on: ${{ matrix.os }}-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [Ubuntu, Windows, macOS] | |
| python_version: | |
| ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.8", "pypy3.9", "pypy3.10", "pypy3.11"] | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
| name: Install Python ${{ matrix.python_version }} | |
| with: | |
| python-version: ${{ matrix.python_version }} | |
| cache: "pip" | |
| allow-prereleases: true | |
| - name: Run nox | |
| run: pipx run nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }} | |
| pass: | |
| name: All pass | |
| if: always() | |
| needs: | |
| - test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Decide whether the needed jobs succeeded or failed | |
| uses: re-actors/alls-green@release/v1 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |