From 03036a33fdff411620dca4333eaa90974615a4fe Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Thu, 9 Jan 2025 09:53:53 +0100 Subject: [PATCH] [CI] Use uv in examples workflow --- .github/workflows/examples.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index b8220691..5a92d430 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -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