| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| defaults: | |
| run: | |
| shell: bash | |
| permissions: | |
| contents: read | |
| jobs: | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/ruff-action@v4.1.0 | |
| with: | |
| # Keep in sync with .pre-commit-config.yaml | |
| version: 0.15.14 | |
| args: check --extend-exclude testdata | |
| - uses: astral-sh/ruff-action@v4.1.0 | |
| with: | |
| version: 0.15.14 | |
| args: format --check --exclude testdata |