[CI] Use uv in examples workflow

This commit is contained in:
Fabian Joswig 2025-01-09 09:53:53 +01:00
parent 80fb314c24
commit 03036a33fd

View file

@ -27,17 +27,16 @@ jobs:
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v5
- name: Install - name: Install
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super
python -m pip install --upgrade pip uv pip install wheel
pip install wheel uv pip install .
pip install . uv pip install pytest nbmake
pip install pytest uv pip install -U matplotlib!=3.7.0 # Exclude version 3.7.0 of matplotlib as this breaks local imports of style files.
pip install nbmake
pip install -U matplotlib!=3.7.0 # Exclude version 3.7.0 of matplotlib as this breaks local imports of style files.
- name: Run tests - name: Run tests
run: pytest -vv --nbmake examples/*.ipynb run: pytest -vv --nbmake examples/*.ipynb