-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.17 KB
/
coverage.yml
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
44
45
46
47
---
# Notes for this action:
# Restoring caches is largely useless, since the compiler flags are only useful for code coverage runs.
# This GA is self-hosted, and has local caching solutions.
name: Source Coverage
'on':
push:
branches:
- development
- ci-coverage-*
env:
toolchain: nightly-2024-03-01
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
name: test and generate coverage
runs-on: [ self-hosted, ubuntu-high-mem ]
steps:
- name: checkout source code
uses: actions/checkout@v4
- name: ubuntu dependencies
run: |
sudo apt-get update
sudo bash scripts/install_ubuntu_dependencies.sh
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- name: run tests with coverage
# Prepare the coverage data, even if some tests fail
continue-on-error: true
run: bash -c ./scripts/source_coverage.sh
- name: Coveralls upload
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
format: lcov
file: lcov.info