Skip to content

📝 docs: initial docs #808

📝 docs: initial docs

📝 docs: initial docs #808

Workflow file for this run

name: Lint and Format
on:
push:
branches: [main]
pull_request:
merge_group:
workflow_dispatch:
jobs:
lint-and-fmt-python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
architecture: ["x64"]
name: Lint and Format (Python)
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install just
uses: extractions/setup-just@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: |
just ci-install
- name: lint
run: |
just ci-lint
- name: format check
run: |
just ci-fmt-check
lint-and-fmt-rust:
name: Lint and Format (Rust)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy, rustfmt
- uses: actions/cache@v4
id: cargo-cache
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Format with rustfmt
working-directory: packages/biliass/rust
run: |
cargo fmt --all -- --check
- name: Lint with clippy
working-directory: packages/biliass/rust
run: |
cargo clippy --all-targets --all-features -- -D warnings