ci: bump google-github-actions auth + setup-gcloud to v3 (Node 24 nat… #14
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: Python CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| # Actions pinned to majors that are Node.js 24 native (checkout v6, setup-python v6). | |
| # FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 is kept as a defensive belt-and-suspenders in | |
| # case a future action version regresses; harmless when everything is already Node 24. | |
| # https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff pytest | |
| - name: Format check with Ruff | |
| run: | | |
| ruff format --check . | |
| - name: Lint with Ruff | |
| run: | | |
| ruff check . |