-
Notifications
You must be signed in to change notification settings - Fork 24
25 lines (24 loc) · 766 Bytes
/
test.yml
File metadata and controls
25 lines (24 loc) · 766 Bytes
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
on:
push:
branches:
- master
pull_request:
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # important for Coveralls to read commit history
- uses: actions/setup-python@v5
with:
python-version: '3.13' # because cvxopt binaries for 3.14 don't yet exist, and building is terrible
- name: tests and coverage
run: | # some extra stuff here to make sure coverage works across multiprocessing
pip install -e .[advanced,dev] coveralls
coverage run --source=pynumdiff -m pytest -s
coverage xml
- uses: coverallsapp/github-action@v2
with:
format: cobertura
file: coverage.xml