Skip to content

Commit

Permalink
GH actions: run test coverage on merge-to-master, but not prs
Browse files Browse the repository at this point in the history
It's slow.
  • Loading branch information
sbillig authored and cburgdorf committed Jun 2, 2022
1 parent cacaefd commit 7621ff9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 26 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: test-coverage

on:
push:
branches: [master]
tags:
- v*

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-D warnings"

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
- name: Install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
- name: install cargo-tarpaulin
run: |
cargo install cargo-quickinstall
cargo quickinstall cargo-tarpaulin
- name: coverage with tarpaulin
run: |
make coverage
bash <(curl -s https://codecov.io/bash)
26 changes: 0 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,6 @@ env:
RUSTFLAGS: "-D warnings"

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
- name: Install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
- name: install cargo-tarpaulin
run: |
cargo install cargo-quickinstall
cargo quickinstall cargo-tarpaulin
- name: coverage with tarpaulin
run: |
make coverage
bash <(curl -s https://codecov.io/bash)
lint:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7621ff9

Please sign in to comment.