ci: update dependency installation command to run 'uv sync' from the root directory

This commit is contained in:
remsky 2025-01-13 20:46:26 -07:00
parent 7b4aaeb632
commit 36f85638ac
4 changed files with 1846 additions and 7 deletions

View file

@ -11,7 +11,6 @@ jobs:
runs-on: ubuntu-latest
env:
UV_SYSTEM_PYTHON: 1
UV_PROJECT_ENVIRONMENT: 1
strategy:
matrix:
python-version: ["3.10"]
@ -20,20 +19,16 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: |
cd docker/cpu && uv sync --all-extras --dev
uv sync --all-extras --dev
- name: Lint with ruff
run: |

View file

@ -1,5 +1,7 @@
line-length = 88
exclude = ["examples"]
[lint]
select = ["I"]

1841
docker/cpu/uv.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -47,6 +47,7 @@ test = [
"pytest-asyncio==0.23.5",
"gradio>=5",
"openai>=1.59.6",
"ruff>=0.2.2",
]
[tool.uv]