@@ -6,6 +6,10 @@ on: # yamllint disable-line rule:truthy
6
6
- " master"
7
7
pull_request : {}
8
8
9
+ concurrency :
10
+ group : ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress : true
12
+
9
13
env :
10
14
CARGO_INCREMENTAL : 0
11
15
SCCACHE_GHA_ENABLED : " true"
@@ -17,44 +21,54 @@ jobs:
17
21
runs-on : ubuntu-latest
18
22
steps :
19
23
- name : Check out repo and build scripts
20
- uses : actions/checkout@v3
24
+ uses : actions/checkout@v4
21
25
with :
22
26
submodules : recursive
23
27
- name : Run sccache
24
- uses :
mozilla-actions/[email protected] .3
28
+ uses :
mozilla-actions/[email protected] .7
25
29
- name : Build
26
- run : cargo build
30
+ run : make build
27
31
28
32
lint :
29
33
runs-on : ubuntu-latest
30
34
steps :
31
35
- name : Check out repo and build scripts
32
- uses : actions/checkout@v3
36
+ uses : actions/checkout@v4
33
37
with :
34
38
submodules : recursive
35
39
- name : Run sccache
36
- uses :
mozilla-actions/[email protected] .3
40
+ uses :
mozilla-actions/[email protected] .7
37
41
- name : rustfmt nightly
38
42
run : |
39
43
rustup toolchain install nightly-x86_64-unknown-linux-gnu
40
44
rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
41
45
- name : Install Python
42
46
uses : actions/setup-python@v5
43
47
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
47
51
- name : Run pre-commit
48
- uses : pre-commit/[email protected]
52
+ run : make lint
49
53
50
54
test :
51
55
runs-on : ubuntu-latest
52
56
steps :
53
57
- name : Check out repo and build scripts
54
- uses : actions/checkout@v3
58
+ uses : actions/checkout@v4
55
59
with :
56
60
submodules : recursive
57
61
- 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
59
67
- 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 }}
0 commit comments