Skip to content

Commit

Permalink
chore(ci): move codecov to main ci (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-starkware authored Aug 13, 2024
1 parent 2e5ca21 commit 4e12bc2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 72 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/blockifier_coverage.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,32 @@ jobs:
ref: ${{github.ref}}
timeout: 1200
ignored: "code-review/reviewable"

codecov:
runs-on: starkware-ubuntu-latest-medium
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install_rust
- name: Set-Up
run: |
sudo apt-get update
sudo apt-get install -y clang llvm libudev-dev
- uses: Noelware/[email protected]
with:
version: ${{env.PROTOC_VERSION}}

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
- run: npm install -g [email protected]
- name: Coverage
run: cargo llvm-cov --codecov -r --output-path codecov.json
env:
SEED: 0
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
fail_ci_if_error: true
version: "v0.1.15"
29 changes: 0 additions & 29 deletions .github/workflows/papyrus_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,35 +105,6 @@ jobs:
env:
SEED: 0
codecov:
runs-on: starkware-ubuntu-latest-medium
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install_rust
- name: Set-Up
run: |
sudo apt-get update
sudo apt-get install -y clang llvm libudev-dev
- uses: Noelware/[email protected]
with:
version: ${{env.PROTOC_VERSION}}

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
- run: npm install -g [email protected]
- name: Coverage
run: cargo llvm-cov --codecov -r --output-path codecov.json
env:
SEED: 0
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
fail_ci_if_error: true
version: "v0.1.15"

check-starknet_api-dependency:
runs-on: starkware-ubuntu-latest-small
if: github.base_ref == 'main' # this step is only run if the pr is to the main branch
Expand Down

0 comments on commit 4e12bc2

Please sign in to comment.