[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
with:
python-version: ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v5
- name: Install
run: |
sudo apt-get update
sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super
python -m pip install --upgrade pip
pip install wheel
pip install .
pip install pytest
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.
uv pip install wheel
uv pip install .
uv pip install pytest nbmake
uv 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
run: pytest -vv --nbmake examples/*.ipynb