forked from llnl/benchpark
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 909 Bytes
/
coverage.yml
File metadata and controls
27 lines (27 loc) · 909 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
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@8e8c483db84b4bee98b60c0593521ed34d9990e8
- 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
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