initial commit #1
This file contains 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] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
env: | |
PYTHON_VERSION: '3.13' | |
# renovate: datasource=pypi depName=uv | |
UV_VERSION: '0.5.11' | |
jobs: | |
quality: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
persist-credentials: false | |
- name: Install Rust toolchain | |
run: rustup component add clippy rustfmt | |
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2 | |
- name: Run cargo fmt | |
run: cargo fmt --all --check | |
- name: Run clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
tests: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
persist-credentials: false | |
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2 | |
- name: Run cargo test | |
run: cargo test | |
check-docs: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
persist-credentials: false | |
- name: Install uv | |
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5 | |
with: | |
version: ${{ env.UV_VERSION }} | |
- name: Install Python | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Check if documentation can be built | |
run: uv run --only-group docs mkdocs build --strict |