From 632792b3e00e0e8fecf8395c457ae024417ad43c Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 21 Nov 2024 01:04:15 +0000 Subject: [PATCH] ci: Test install from main test job Should use somewhat fewer workers and jobs --- .github/workflows/tests.yml | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aabb55ce..453b7b5e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -117,6 +117,10 @@ jobs: - name: Check clippy # TODO: Deny warnings run: cargo clippy --all-targets --all-features + - name: Install locked + run: cargo install --locked --path . + - name: Install unlocked + run: cargo install --path . minimal-versions: needs: [quick-test] @@ -185,30 +189,6 @@ jobs: cd target/package/cargo-mutants-*.*.[0-9] cargo test - # Install from a checkout of the source, to find broken dependencies etc. - # We run this on various versions because some dependencies might have changed - # their MSRV, and on every platform because there are platform-specific - # dependencies. - install: - needs: [quick-test] - strategy: - matrix: - os: [macOS-latest, ubuntu-latest, windows-latest] - version: [stable, nightly, "1.74"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.version }} - - name: Show Cargo and rustc version - run: | - cargo --version - rustc --version - - uses: Swatinem/rust-cache@v2 - - run: cargo install --locked --path . - - run: cargo install --path . - pr-mutants: runs-on: ubuntu-latest if: github.event_name == 'pull_request'