ci: replace pip with uv for faster dependency installation

This commit is contained in:
Artem Akymenko
2026-07-08 18:34:35 +00:00
parent 6f02fda41c
commit 31f95137dd
2 changed files with 14 additions and 19 deletions
+8 -12
View File
@@ -30,23 +30,19 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v8.3.1
with:
enable-cache: true
cache-dependency-glob: pyproject.toml
- name: Install system dependencies (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libegl1
- name: Cache pip
uses: actions/cache@v6
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
run: uv pip install --system .[dev]
- name: Run tests
env: