Repository navigation
chore(deps): update jpeg2k requirement from 0.10.1 to 0.11.0 #816
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: Test Python | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-python: | |
| name: Lint | |
| runs-on: ubuntu-slim | |
| defaults: | |
| run: | |
| working-directory: python | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: "recursive" | |
| - name: Install a specific version of uv | |
| uses: astral-sh/setup-uv@v10.3.3 | |
| with: | |
| version: "latest" | |
| # Ensure docs build without warnings | |
| - name: Check docs | |
| if: "${{ matrix.python-version == 3.11 }}" | |
| run: uv run --group docs mkdocs build --strict | |
| # Use ruff-action so we get annotations in the Github UI | |
| - uses: astral-sh/ruff-action@v4.1.0 | |
| with: | |
| src: "python" | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: python | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: "recursive" | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v2.9.3 | |
| - name: "cargo check" | |
| run: cargo check --all --all-features | |
| - name: "cargo test" | |
| run: | | |
| cargo test --all | |
| cargo test --all --all-features | |
| pytest: | |
| name: Pytest | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"] | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: "recursive" | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v2.9.3 | |
| - uses: actions/setup-python@v7.1.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| - name: Install a specific version of uv | |
| uses: astral-sh/setup-uv@v10.3.3 | |
| with: | |
| version: "latest" | |
| - name: uv sync | |
| working-directory: python | |
| run: uv sync --no-install-package async-tiff | |
| - name: maturin venv Build | |
| working-directory: python | |
| run: uv run --no-project maturin develop | |
| - name: Run pytest | |
| working-directory: python | |
| run: uv run --no-project pytest --verbose |