-
Notifications
You must be signed in to change notification settings - Fork 24
27 lines (26 loc) · 1018 Bytes
/
Copy pathtest.yml
File metadata and controls
27 lines (26 loc) · 1018 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
26
27
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.x'
- name: tests and coverage
run: | # top line is for building cvxopt from source, which is recently necessary for Python 3.14, too new for prebuilt wheel
sudo apt-get install -y libblas-dev liblapack-dev libsuitesparse-dev libglpk-dev
export CVXOPT_GLPK=True CVXOPT_GLPK_INC=/usr/include CVXOPT_GLPK_LIB=/usr/lib/x86_64-linux-gnu
pip install -e .[advanced,dev] coveralls
coverage run --source=pynumdiff --omit='pynumdiff/_version.py,pynumdiff/tests/*,pynumdiff/utils/old_pi_cruise_control.py' -m pytest -s
coverage xml
- uses: coverallsapp/github-action@v2
with:
format: cobertura
file: coverage.xml