PDFCLOUD-5351 Initial Python API for pdfRest #3
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: pre-commit | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| - feature-* | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| packages: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: 0.8.22 | |
| python-version: 3.11 | |
| enable-cache: true | |
| cache-suffix: pre-commit | |
| cache-dependency-glob: uv.lock | |
| - name: Restore venv cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .venv | |
| key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }} | |
| - uses: actions/cache@v4 | |
| with: | |
| path: .mypy_cache | |
| key: mypy_cache|${{ hashFiles('pyproject.toml') }} | |
| - name: Synchronize project dependencies | |
| run: uv sync --group dev | |
| - name: Run pre-commit checks | |
| run: uv run pre-commit run --all-files --hook-stage manual |