From 25091772e19eb800987b938496c3a47b2984e643 Mon Sep 17 00:00:00 2001 From: jenisys Date: Thu, 3 Oct 2024 13:33:27 +0200 Subject: [PATCH] CI: Use astral-sh/setup-uv action --- .github/workflows/test.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 09362de..e21098e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,14 +32,22 @@ jobs: python-version: ${{ matrix.python-version }} cache: 'pip' cache-dependency-path: 'py.requirements/*.txt' + - name: setup-uv -- Speed-up Python package installations ... + uses: astral-sh/setup-uv@v3 + with: + enable-cache: true + cache-dependency-glob: | + **/pyproject.toml + **/py.requirements/ci.github.testing.txt + **/py.requirements/basic.txt - name: "Install Python package dependencies (with: uv)" run: | - python -m pip install -U uv - python -m uv pip install -U pip setuptools wheel - python -m uv pip install --upgrade -r py.requirements/ci.github.testing.txt - python -m uv pip install -e . + uv venv + uv pip install -U pip setuptools wheel + uv pip install -U -r py.requirements/ci.github.testing.txt + uv pip install -e . - name: Run tests - run: pytest + run: uv run pytest - name: Upload test reports uses: actions/upload-artifact@v3 with: