diff --git a/.github/workflows/bench_pull_request.yml b/.github/workflows/bench_pull_request.yml index ba3b2cd2c1..81ef6c3ef5 100644 --- a/.github/workflows/bench_pull_request.yml +++ b/.github/workflows/bench_pull_request.yml @@ -35,4 +35,4 @@ jobs: comment-on-alert: true alert-comment-cc-users: '@unbalancedparentheses' - name: Clean benches - run: make clean \ No newline at end of file + run: make clean diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0148ec6473..e9539e5203 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,6 +24,21 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.9' + + - name: Set up cargo cache + uses: actions/cache@v3 + continue-on-error: false + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/debug/deps/ + target/release/deps/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo- + - name: Install test dependencies run: pip install ecdsa fastecdsa sympy cairo-lang==0.9.1 - name: format @@ -38,9 +53,21 @@ jobs: run: make clippy - name: Coverage run: make coverage + - name: Cache Codecov-report + uses: actions/upload-artifact@master + with: + name: codecov-report + path: target/tarpaulin + upload-codecov: + needs: build + runs-on: ubuntu-20.04 + steps: + - name: Retrieve cached report + uses: actions/download-artifact@master + with: + name: codecov-report + path: target/tarpaulin - name: Upload coverage to codecov.io uses: codecov/codecov-action@v3 with: fail_ci_if_error: true - - name: Cleanup tests - run: make clean