-
Notifications
You must be signed in to change notification settings - Fork 28
46 lines (44 loc) · 1.49 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
on:
push:
branches:
- "**" # target all branches
pull_request:
branches:
- master
name: Code Coverage
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- id: skip-check
uses: fkirc/[email protected]
with:
concurrent_skipping: "same_content_newer"
skip_after_successful_duplicate: "true"
- name: Install dependencies
run: sudo apt-get install -yqq --no-install-recommends build-essential libgtk-3-dev python3 python3-toml
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
# TODO: Inspect coverage, and change toolchain to stable
toolchain: nightly-2023-08-01
override: true
- uses: actions-rs/cargo@v1
with:
command: clean
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
env:
RUST_LOG: debug
RUST_BACKTRACE: full
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"
- id: coverage
uses: actions-rs/[email protected]
- uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: ${{ steps.coverage.outputs.report }}