ci: add cache for coverage

This commit is contained in:
Anand Balakrishnan 2023-10-17 12:46:45 -07:00
parent 7a68fd29d7
commit eab6e219ef
No known key found for this signature in database

View file

@ -143,6 +143,22 @@ jobs:
post-cleanup: 'all' post-cleanup: 'all'
- name: Install Rust toolchain - name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly uses: dtolnay/rust-toolchain@nightly
- name: Generate lockfile
run: cargo generate-lockfile
- name: Set up project cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
.nox/
.hypothesis/
key: ${{ runner.os }}-argus-${{ hashFiles('**/Cargo.toml', 'noxfile.py') }}
restore-keys: ${{ runner.os }}-argus-
- name: Generate Coverage Reports - name: Generate Coverage Reports
run: nox -s coverage run: nox -s coverage
- name: Upload coverage reports to Codecov - name: Upload coverage reports to Codecov