ci #576
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: ci | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| push: | |
| branches: | |
| - master | |
| workflow_run: # chain from the uv-lock workflow | |
| workflows: ["uv.lock on Dependabot PRs"] | |
| types: [completed] | |
| jobs: | |
| build: | |
| # Only run if not a Dependabot PR, or once uv-lock has completed successfully | |
| if: | | |
| github.event_name == 'workflow_run' || | |
| github.actor != 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv and set the Python version | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install dependencies | |
| run: | | |
| uv sync --locked --only-dev | |
| - name: Run Prettier | |
| uses: creyD/[email protected] | |
| with: | |
| dry: True | |
| prettier_options: "--check **/*.{json,yaml,yml,md}" | |
| - name: Run Tox | |
| run: | | |
| uv run tox -e py,lint |