refining CI more #334
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| 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 |