Benchmarking + Python Bug Fixes + Axum Bump #59
Workflow file for this run
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: Code Quality | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
# ================================ | |
# Rust Formatting & Linting | |
# ================================ | |
rust-fmt: | |
name: Rust Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Check code formatting | |
run: cargo fmt --all -- --check | |
rust-clippy: | |
name: Rust Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Check clippy | |
run: cargo clippy --all-features --tests -- -D warnings | |
rust-sqlx: | |
name: SQLx Schema Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install sqlx-cli | |
run: cargo install sqlx-cli --no-default-features --features native-tls,postgres | |
- name: Run sqlx prepare | |
run: cargo sqlx prepare --workspace --check | |
env: | |
SQLX_OFFLINE: true | |
# ================================ | |
# Python Formatting & Linting | |
# ================================ | |
python-quality: | |
name: Python Quality | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- name: Install uv | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Check formatting & linting | |
run: | | |
cd client_sdks/python | |
uv tool run ruff format --check . | |
uv tool run ruff check . |