[ci] Update action versions, add permissions and dependebot, speed up examples (#290)

This commit is contained in:
Fabian Joswig 2026-07-27 22:17:19 +02:00 committed by GitHub
commit 22d2daba30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 45 additions and 4 deletions

View file

@ -10,6 +10,9 @@ on:
schedule:
- cron: '0 4 1 * *'
permissions:
contents: read
jobs:
examples:
runs-on: ${{ matrix.os }}
@ -30,14 +33,20 @@ jobs:
- name: uv
uses: astral-sh/setup-uv@v5
- name: Install
- name: Install LaTeX
run: |
sudo apt-get update
sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super
sudo apt-get install -y --no-install-recommends \
dvipng texlive-latex-extra texlive-fonts-recommended cm-super
- name: Install
run: |
uv pip install wheel --system
uv pip install . --system
uv pip install pytest nbmake --system
uv pip install pytest pytest-xdist nbmake --system
uv pip install -U matplotlib!=3.7.0 --system # Exclude version 3.7.0 of matplotlib as this breaks local imports of style files.
# The notebooks are independent (only 07 writes to disk), so execute them in
# parallel instead of serially.
- name: Run tests
run: pytest -vv --nbmake examples/*.ipynb
run: pytest -vv -n auto --nbmake examples/*.ipynb