mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
ci: update dependency installation command to run 'uv sync' from the root directory
This commit is contained in:
parent
7b4aaeb632
commit
36f85638ac
4 changed files with 1846 additions and 7 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -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: |
|
||||||
|
|
|
@ -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
1841
docker/cpu/uv.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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]
|
||||||
|
|
Loading…
Add table
Reference in a new issue