-
Notifications
You must be signed in to change notification settings - Fork 34
47 lines (38 loc) · 1.04 KB
/
coverage-test.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
name: Coverage
on:
push:
branches:
- main
pull_request:
# Run workflow when PR is changed, or when changed from draft to ready
types: [opened, synchronize, reopened, ready_for_review]
branches:
- '**'
jobs:
build-and-test:
name: Coverage
runs-on: ubuntu-latest
# Skip job if it's a draft PR
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
# Testing on version that Stan currently supports
python-version: '3.12'
- name: install pints
run: |
python --version
python -m pip install --upgrade pip setuptools wheel
python -m pip install .[stan]
python -m pip install coverage codecov
- name: run coverage
run: |
coverage run run-tests.py --unit
- name: codecov
if: success()
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
codecov