-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (44 loc) · 1.1 KB
/
coveralls.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
39
40
41
42
43
44
45
46
47
48
name: coveralls
on:
push:
paths-ignore:
- "**.md"
- "**.rst"
- "**.ipynb"
paths:
- "deeprankcore/**"
- "tests/**"
- ".github/workflows/linting.yml"
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "**.md"
- "**.rst"
- "**.ipynb"
paths:
- "deeprankcore/**"
- "tests/**"
- ".github/workflows/linting.yml"
jobs:
build:
if: github.event.pull_request.draft == false
name: Coveralls
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-python-and-package
- name: Run unit tests with coverage
run: pytest --cov --cov-append --cov-report xml --cov-report term --cov-report html
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
COVERALLS_FLAG_NAME: python-${{ matrix.os }}
run: |
coveralls --service=github