Skip to content

Commit 873d55d

Browse files
authored
Merge pull request #202 from simonrw/add-coverage
Add coverage
2 parents 6ced36e + 9849135 commit 873d55d

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/coverage.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Compute coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
coverage:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout sources
14+
uses: actions/checkout@v1
15+
16+
- name: Install ubuntu dependencies
17+
run: |
18+
sudo apt-get update && sudo apt-get install --no-install-recommends -y \
19+
llvm-dev \
20+
libcfitsio-dev \
21+
pkg-config \
22+
libssl-dev \
23+
python3
24+
25+
- name: Install toolchain
26+
uses: actions-rs/toolchain@v1
27+
with:
28+
toolchain: stable
29+
profile: minimal
30+
override: true
31+
32+
- name: Run cargo-tarpaulin
33+
uses: actions-rs/tarpaulin@v0.1
34+
with:
35+
args: --manifest-path fitsio --coveralls ${{ secrets.COVERALLS_TOKEN }}
36+
37+
- name: Archive code coverage results
38+
uses: actions/upload-artifact@v1
39+
with:
40+
name: code-coverage-report
41+
path: cobertura.xml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FFI wrapper around cfitsio in Rust
44

55
[![Join the chat at https://gitter.im/simonrw/rust-fitsio](https://badges.gitter.im/simonrw/rust-fitsio.svg)](https://gitter.im/rust-fitsio/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
66
[![Build Status](https://travis-ci.org/simonrw/rust-fitsio.svg?branch=master)](https://travis-ci.org/simonrw/rust-fitsio)
7-
[![Coverage Status](https://coveralls.io/repos/github/simonrw/rust-fitsio/badge.svg?branch=master)](https://coveralls.io/github/simonrw/rust-fitsio?branch=master)
7+
[![Coverage Status](https://coveralls.io/repos/github/simonrw/rust-fitsio/badge.svg?branch=main)](https://coveralls.io/github/simonrw/rust-fitsio?branch=main)
88

99
## Platform support
1010

0 commit comments

Comments
 (0)