Fic GitHub actions setup #2
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: Checks | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| checks: | |
| name: Run checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Cairo on Ubuntu | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libraw-dev libcairo2-dev | |
| - name: Check out the repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| - name: Setup UV | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| uv sync --locked --all-extras --dev | |
| - name: Run pre-commit hooks | |
| run: | | |
| uv run ty check | |
| uv run pre-commit run |