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

View file

@ -1,5 +1,7 @@
line-length = 88 line-length = 88
exclude = ["examples"]
[lint] [lint]
select = ["I"] 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", "pytest-asyncio==0.23.5",
"gradio>=5", "gradio>=5",
"openai>=1.59.6", "openai>=1.59.6",
"ruff>=0.2.2",
] ]
[tool.uv] [tool.uv]