mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00

This PR copies over the `pep440-rs` crate at commit `82aa5d4dcbe676b121dc931b0afa09a82de8e3d7` with no modifications. It won't pass CI, but modifications will intentionally be confined to later PRs.
38 lines
976 B
YAML
38 lines
976 B
YAML
name: test
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: rustup toolchain install stable --profile minimal
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Run tests
|
|
run: cargo test
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy, rustfmt
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Ruff
|
|
run: pipx run ruff check --format github .
|
|
- name: black
|
|
run: pipx run black --check .
|
|
- name: Rustfmt
|
|
run: cargo fmt --all -- --check
|
|
- name: Clippy (pure rust)
|
|
run: cargo clippy --tests -- -D warnings
|
|
- name: Clippy (pyo3)
|
|
run: cargo clippy --tests --all-features -- -D warnings
|