-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (40 loc) · 1.05 KB
/
code-coverage.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: Code Coverage
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
jobs:
CodeCoverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bazel
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: ./tools/rad/setup.py
- name: Install Rad Tool
run: pip install -e ./tools/rad
- name: Generate Coverage
run: rad coverage --output-xml ./coverage.xml -vv
- name: Upload Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: archonitelabs/radiant-cpp
fail_ci_if_error: true
verbose: true
files: ./coverage.xml