use uv instead pip in github actions

This commit is contained in:
bridge
2026-01-07 22:46:08 +08:00
parent b2a021bf8a
commit 345b759fff

View File

@@ -17,13 +17,16 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
uv pip install --system -r requirements.txt
uv pip install --system pytest
- name: Run tests
run: pytest -v