Skip to content

Commit 3f7e3e0

Browse files
committed
coverage
1 parent 02750ec commit 3f7e3e0

File tree

6 files changed

+39
-13
lines changed

6 files changed

+39
-13
lines changed

.cargo/config.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build]
2+
target-dir = ".build"
3+
4+
[profile.test-cover]
5+
inherits = "test"
6+
incremental = false

.github/workflows/verify.yml

+26-12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on: # yamllint disable-line rule:truthy
66
- "master"
77
pull_request: {}
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
env:
1014
CARGO_INCREMENTAL: 0
1115
SCCACHE_GHA_ENABLED: "true"
@@ -17,44 +21,54 @@ jobs:
1721
runs-on: ubuntu-latest
1822
steps:
1923
- name: Check out repo and build scripts
20-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2125
with:
2226
submodules: recursive
2327
- name: Run sccache
24-
uses: mozilla-actions/[email protected].3
28+
uses: mozilla-actions/[email protected].7
2529
- name: Build
26-
run: cargo build
30+
run: make build
2731

2832
lint:
2933
runs-on: ubuntu-latest
3034
steps:
3135
- name: Check out repo and build scripts
32-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3337
with:
3438
submodules: recursive
3539
- name: Run sccache
36-
uses: mozilla-actions/[email protected].3
40+
uses: mozilla-actions/[email protected].7
3741
- name: rustfmt nightly
3842
run: |
3943
rustup toolchain install nightly-x86_64-unknown-linux-gnu
4044
rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
4145
- name: Install Python
4246
uses: actions/setup-python@v5
4347
with:
44-
python-version: "3.11"
45-
- name: Install poetry
46-
uses: snok/install-poetry@v1
48+
python-version: "3.13"
49+
- name: Install pre-commit
50+
run: pip install pre-commit
4751
- name: Run pre-commit
48-
uses: pre-commit/[email protected]
52+
run: make lint
4953

5054
test:
5155
runs-on: ubuntu-latest
5256
steps:
5357
- name: Check out repo and build scripts
54-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5559
with:
5660
submodules: recursive
5761
- name: Run sccache
58-
uses: mozilla-actions/[email protected]
62+
uses: mozilla-actions/[email protected]
63+
- name: Install grcov
64+
run: cargo install grcov
65+
- name: Add llvm-tools
66+
run: rustup component add llvm-tools-preview
5967
- name: Test
60-
run: cargo test
68+
run: make test
69+
- name: Compute coverage
70+
run: make cover
71+
- name: Upload coverage
72+
uses: codecov/codecov-action@v5
73+
with:
74+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/target
1+
.build

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "build"]
2+
path = build
3+
url = [email protected]:acrlabs/build-scripts

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include build/base.mk
2+
include build/rust.mk

build

Submodule build added at 19476ee

0 commit comments

Comments
 (0)