build(deps): bump the actions group across 1 directory with 5 updates #4
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-rust: | |
| name: lint-rust | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: cargo fmt --check | |
| run: cargo fmt --all -- --check | |
| - name: cargo clippy | |
| run: cargo clippy --workspace --all-targets -- -D warnings | |
| - name: cargo-deny | |
| uses: EmbarkStudios/cargo-deny-action@v2 | |
| with: | |
| command: check | |
| test-rust: | |
| name: test-rust | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-nextest | |
| - name: cargo nextest | |
| run: cargo nextest run --workspace --exclude rust-python-template-ffi | |
| - name: cargo test --doc | |
| run: cargo test --doc --workspace --exclude rust-python-template-ffi | |
| docs-rust: | |
| name: docs-rust | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: cargo doc | |
| env: | |
| RUSTDOCFLAGS: "-D warnings --cfg docsrs" | |
| run: cargo doc --workspace --exclude rust-python-template-ffi --no-deps --all-features | |
| build-wheel: | |
| name: build-wheel | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - uses: astral-sh/setup-uv@v7 | |
| - name: maturin build | |
| run: uv run --with maturin maturin build --out dist | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: wheel | |
| path: dist/*.whl | |
| if-no-files-found: error | |
| lint-py: | |
| name: lint-py | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - uses: astral-sh/setup-uv@v7 | |
| - name: uv sync (dev deps only, skip building the project) | |
| run: uv sync --locked --all-extras --no-install-project | |
| - name: ruff check | |
| run: uv run ruff check . | |
| - name: ruff format --check | |
| run: uv run ruff format --check . | |
| - name: pyright | |
| run: uv run pyright --no-install-project | |
| test-py: | |
| name: test-py | |
| needs: build-wheel | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: astral-sh/setup-uv@v7 | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: wheel | |
| path: dist | |
| - name: install wheel into a fresh venv | |
| run: | | |
| uv venv --python "${{ matrix.python-version }}" | |
| uv pip install dist/*.whl pytest | |
| - name: pytest | |
| run: uv run pytest tests/python -m "not slow" |