Skip to content

Commit

Permalink
Don't run CI tests when computing coverage
Browse files Browse the repository at this point in the history
We are running out of disk space.
  • Loading branch information
smoelius committed Nov 20, 2023
1 parent 05ced40 commit 71729e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,16 @@ jobs:
with:
ssh-key: ${{ secrets.PR_SSH_KEY }}

- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.dylint_drivers/
~/.rustup/toolchains/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install dylint-link
run: cargo install --path ./dylint-link

- name: Install tools
- name: Free up space on Ubuntu
run: |
npm install -g prettier
rustup install nightly
cargo install cargo-hack || true
cargo install cargo-msrv || true
cargo install cargo-supply-chain || true
cargo install cargo-udeps || true
# https://github.com/actions/runner-images/issues/2606#issuecomment-772683150
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/share/swift
# du -sh /usr/*/* 2>/dev/null | sort -h || true
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov
Expand All @@ -51,7 +39,7 @@ jobs:
run: |
for X in . driver utils/linting; do
pushd "$X"
cargo llvm-cov --failure-mode all --lcov --output-path coverage.lcov
cargo llvm-cov --workspace --exclude examples --failure-mode all --lcov --output-path coverage.lcov
popd
done
Expand Down
2 changes: 2 additions & 0 deletions cargo-dylint/tests/ci.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(not(coverage))]

use anyhow::Result;
use assert_cmd::Command;
use cargo_metadata::{Dependency, Metadata, MetadataCommand};
Expand Down

0 comments on commit 71729e6

Please sign in to comment.