diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ff2aee33..28eddc52 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,13 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true components: rustfmt - name: Check format @@ -27,33 +25,33 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true components: clippy + - name: Cache cargo artifacts + uses: Swatinem/rust-cache@v2 + - name: Lint with clippy run: cargo clippy -p fibertools-rs Testing: - needs: Formatting runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true + uses: dtolnay/rust-toolchain@stable + + - name: Cache cargo artifacts + uses: Swatinem/rust-cache@v2 - name: Run test - run: cargo test -p fibertools-rs -- --test-threads=1 + run: cargo test -p fibertools-rs - name: Run molecular-annotation tests run: cargo test -p molecular-annotation --features htslib