Skip to content

Commit 7621ff9

Browse files
sbilligcburgdorf
authored andcommitted
GH actions: run test coverage on merge-to-master, but not prs
It's slow.
1 parent cacaefd commit 7621ff9

File tree

2 files changed

+39
-26
lines changed

2 files changed

+39
-26
lines changed

.github/workflows/coverage.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: test-coverage
2+
3+
on:
4+
push:
5+
branches: [master]
6+
tags:
7+
- v*
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
CARGO_INCREMENTAL: 0
12+
RUSTFLAGS: "-D warnings"
13+
14+
jobs:
15+
coverage:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Install system dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y libboost-all-dev
24+
- name: Install rust
25+
uses: actions-rs/toolchain@v1
26+
with:
27+
profile: minimal
28+
toolchain: stable
29+
override: true
30+
- name: Cache Dependencies
31+
uses: Swatinem/rust-cache@v1
32+
- name: install cargo-tarpaulin
33+
run: |
34+
cargo install cargo-quickinstall
35+
cargo quickinstall cargo-tarpaulin
36+
- name: coverage with tarpaulin
37+
run: |
38+
make coverage
39+
bash <(curl -s https://codecov.io/bash)

.github/workflows/main.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,6 @@ env:
1414
RUSTFLAGS: "-D warnings"
1515

1616
jobs:
17-
coverage:
18-
runs-on: ubuntu-latest
19-
20-
steps:
21-
- uses: actions/checkout@v2
22-
- name: Install system dependencies
23-
run: |
24-
sudo apt-get update
25-
sudo apt-get install -y libboost-all-dev
26-
- name: Install rust
27-
uses: actions-rs/toolchain@v1
28-
with:
29-
profile: minimal
30-
toolchain: stable
31-
override: true
32-
- name: Cache Dependencies
33-
uses: Swatinem/rust-cache@v1
34-
- name: install cargo-tarpaulin
35-
run: |
36-
cargo install cargo-quickinstall
37-
cargo quickinstall cargo-tarpaulin
38-
- name: coverage with tarpaulin
39-
run: |
40-
make coverage
41-
bash <(curl -s https://codecov.io/bash)
42-
4317
lint:
4418
runs-on: ubuntu-latest
4519
steps:

0 commit comments

Comments
 (0)