Skip to content

Commit

Permalink
Addvdoverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 6, 2024
1 parent b462934 commit 91a2e1c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,7 @@ jobs:
NO_OPTIONAL_TESTS: true
COMPILER_OVERRIDE: clang

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
8 changes: 6 additions & 2 deletions .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ jobs:

- name: Run tests (serially)
if: ${{ matrix.version == 22 && matrix.os == 'ubuntu-latest' }}
run: make js_test
run: make js_test COV=true

- name: Run tests (in parallel)
if: ${{ !(matrix.version == 22 && matrix.os == 'ubuntu-latest') }}
run: make js_test_auto
run: make js_test_auto COV=true

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
9 changes: 7 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,13 @@ jobs:
- name: Run tests (serially)
if: ${{(matrix.os == 'ubuntu-latest' && matrix.version == '3.12') || contains(matrix.version, 'graalpy')}}
run: make py_test LINT=false
run: make py_test LINT=true COV=true

- name: Run tests (in parallel)
if: ${{!((matrix.os == 'ubuntu-latest' && matrix.version == '3.12') || contains(matrix.version, 'graalpy'))}}
run: make py_test_auto LINT=false
run: make py_test_auto LINT=false COV=true

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
20 changes: 19 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,25 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: make rs_test

- run: cd rust && cargo build

- run: cd rust && cargo test
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'

- name: rust-grcov
# You may pin to the exact commit or the version.
# uses: actions-rs/grcov@bb47b1ed7883a1502fa6875d562727ace2511248
uses: actions-rs/[email protected]

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 91a2e1c

Please sign in to comment.