mirror of https://github.com/astral-sh/ruff
Add `cargo shear` to CI (#11393)
This commit is contained in:
parent
6cec82fff8
commit
be0ccabbaa
|
|
@ -395,22 +395,16 @@ jobs:
|
||||||
name: ecosystem-result
|
name: ecosystem-result
|
||||||
path: ecosystem-result
|
path: ecosystem-result
|
||||||
|
|
||||||
cargo-udeps:
|
cargo-shear:
|
||||||
name: "cargo udeps"
|
name: "cargo shear"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: determine_changes
|
needs: determine_changes
|
||||||
if: ${{ needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main' }}
|
if: ${{ needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main' }}
|
||||||
timeout-minutes: 20
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: "Install nightly Rust toolchain"
|
- uses: cargo-bins/cargo-binstall@main
|
||||||
# Only pinned to make caching work, update freely
|
- run: cargo binstall --no-confirm cargo-shear
|
||||||
run: rustup toolchain install nightly-2023-10-15
|
- run: cargo shear
|
||||||
- uses: Swatinem/rust-cache@v2
|
|
||||||
- name: "Install cargo-udeps"
|
|
||||||
uses: taiki-e/install-action@cargo-udeps
|
|
||||||
- name: "Run cargo-udeps"
|
|
||||||
run: cargo +nightly-2023-10-15 udeps
|
|
||||||
|
|
||||||
python-package:
|
python-package:
|
||||||
name: "python package"
|
name: "python package"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue