@@ -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+
913env :
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/sccache-action@v0.0.3
28+ uses : mozilla-actions/sccache-action@v0.0.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/sccache-action@v0.0.3
40+ uses : mozilla-actions/sccache-action@v0.0.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/action@v3.0.1
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/sccache-action@v0.0.3
62+ uses : mozilla-actions/sccache-action@v0.0.7
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 }}
0 commit comments