-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (33 loc) · 944 Bytes
/
coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Compute coverage
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
coverage:
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install ubuntu dependencies
run: |
apt-get update && apt-get install --no-install-recommends -y \
build-essential \
llvm-dev \
libcfitsio-dev \
pkg-config \
libssl-dev \
python3
- name: Run cargo-tarpaulin
run: |
cargo +nightly tarpaulin --manifest-path fitsio/Cargo.toml --verbose --timeout 120 --out lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info