Add `cargo shear` to CI (#11393)

This commit is contained in:
Charlie Marsh 2024-05-12 22:23:36 -04:00 committed by GitHub
parent 6cec82fff8
commit be0ccabbaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 11 deletions

View File

@ -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"