forked from llnl/benchpark
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 970 Bytes
/
coverage.yml
File metadata and controls
28 lines (28 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Run a Set of Tests to Collect Code Coverage for Benchpark
on:
workflow_call:
secrets:
BENCHPARK_CODECOV_TOKEN:
required: true
jobs:
run_unit_tests:
runs-on: ubuntu-24.04
steps:
- name: Checkout Benchpark
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Add needed Python libs
run: |
pip install -r ./requirements.txt
- name: Run unit tests with coverage
run: |
./bin/benchpark unit-test --cov=./ --cov-branch --cov-report=xml --durations=20 -ra
- name: Upload coverage to Codecov
if: ${{ !contains(github.head_ref, 'dependabot/') }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.BENCHPARK_CODECOV_TOKEN }}
directory: ./coverage/reports
files: /home/runner/work/benchpark/benchpark/coverage.xml
flags: unittests
verbose: true
fail_ci_if_error: true