Test Puzzletron Fire import behavior #9541
Workflow file for this run
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: Code Quality | |
| on: | |
| pull_request: | |
| branches: [main, release/*, feature/*] | |
| schedule: | |
| - cron: "0 0 * * *" # Nightly | |
| workflow_dispatch: | |
| # On-demand | |
| concurrency: | |
| # Cancel previous runs if new commit is pushed to the same PR | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| code-quality: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - if: github.event_name == 'pull_request' | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - if: github.event_name != 'pull_request' | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/ubuntu-setup | |
| - name: Secret Scanning | |
| uses: trufflesecurity/trufflehog@v3.90.5 | |
| with: | |
| extra_args: --results=verified,unknown | |
| - name: Run changed-file code quality checks | |
| if: github.event_name == 'pull_request' && github.base_ref == 'feature/puzzletron_v2' | |
| # The pull-request payload can retain an older base SHA after the target branch advances. | |
| # actions/checkout checks out GitHub's current synthetic merge, whose first parent is the | |
| # exact target snapshot used to build that merge. | |
| run: pip install nox uv && nox -s pre_commit_diff -- HEAD^1 HEAD | |
| - name: Run all-file code quality checks | |
| if: github.event_name != 'pull_request' || github.base_ref != 'feature/puzzletron_v2' | |
| run: pip install nox uv && nox -s pre_commit_all |