Skip to content

Bump pytest-cov from 4.1.0 to 5.0.0 in /extra_requirements (#149) #388

Bump pytest-cov from 4.1.0 to 5.0.0 in /extra_requirements (#149)

Bump pytest-cov from 4.1.0 to 5.0.0 in /extra_requirements (#149) #388

Workflow file for this run

name: Test package
# Trigger this code when a new release is published
on:
workflow_dispatch:
release:
types: [ created ]
pull_request:
push:
branches:
- master
jobs:
update:
name: "${{ matrix.test }}_py${{ matrix.python-version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
python-version: [ "3.8", "3.9", "3.10" ]
test: [ 'coveralls' ]
env:
NUMBA_DISABLE_JIT: 1
steps:
# Setup and installation
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Checkout repo
uses: actions/checkout@v4
- name: Install requirements
run: |
sudo apt-get update
# sudo apt install texlive-full
sudo apt install texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super
pip install setuptools wheel
pip install -r extra_requirements/requirements-tests.txt
python setup.py develop
- name: Test package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISABLE_LATEX: 1
PLOT_FAST: 1
run: |
pytest --cov thesis_plots -v -n auto --nbmake notebooks/*.ipynb --durations 0 --nb-coverage
coverage run --append --source=thesis_plots -m pytest -v
coveralls --service=github
- name: Test notebooks with latex
env:
DISABLE_LATEX: 0
PLOT_FAST: 1
run: pytest --cov thesis_plots -v -n auto --nbmake notebooks/*.ipynb --durations 0 --nb-coverage
- name: goodbye
run: echo "tests done, bye bye"