build(deps): bump actions/setup-python from 5 to 6 #274
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: lint | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| - "release-*" | |
| pull_request: | |
| branches: | |
| - "master" | |
| - "release-*" | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "20 4 * * 2" # once a week | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | |
| include: | |
| - { os: ubuntu-latest, python: "pypy3.9" } | |
| - { os: ubuntu-latest, python: "pypy3.10" } | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: set PY_CACHE_KEY | |
| run: echo "PY_CACHE_KEY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV | |
| - name: Cache .nox | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ github.workspace }}/.nox/lint | |
| key: "nox-lint|${{ matrix.os }}|${{ env.PY_CACHE_KEY }}|${{ hashFiles('noxfile.py', 'setup.py', 'pyproject.toml') }}" | |
| - name: Install tools | |
| run: | | |
| pip install -U pip uv nox | |
| pip --version | |
| uv --version | |
| nox --version | |
| - name: Lint | |
| run: nox -v -s lint | |
| env: | |
| RUFF_OUTPUT_FORMAT: "github" |