Skip to content

Commit

Permalink
ci: update dependency installation and testing commands; add ebooklib…
Browse files Browse the repository at this point in the history
… and html2text dependencies
  • Loading branch information
remsky committed Jan 14, 2025
1 parent cf72e4e commit 58cc7c8
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 11 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ jobs:

- name: Install dependencies
run: |
uv sync --all-extras --dev
uv pip install -e .[test]
- name: Lint with ruff
run: |
uv run ruff check .
- name: Test API and UI
- name: Run Tests
run: |
uv run pytest api/tests/ ui/tests/ --asyncio-mode=auto --cov=api --cov=ui --cov-report=term-missing
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,9 @@ EXTERNAL_UV_DOCUMENTATION*
# Docker
Dockerfile*
docker-compose*
examples/assorted_checks/River_of_Teet_-_Sarah_Gailey.epub
examples/ebook_test/chapter_to_audio.py
examples/ebook_test/chapters_to_audio.py
examples/ebook_test/parse_epub.py
examples/ebook_test/River_of_Teet_-_Sarah_Gailey.epub
examples/ebook_test/River_of_Teet_-_Sarah_Gailey.txt
8 changes: 4 additions & 4 deletions docker/cpu/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ services:
gradio-ui:
# image: ghcr.io/remsky/kokoro-fastapi:latest-ui
# Uncomment below (and comment out above) to build from source instead of using the released image
# build:
# context: ./ui
build:
context: ../../ui
ports:
- "7860:7860"
volumes:
- ./ui/data:/app/ui/data
- ./ui/app.py:/app/app.py # Mount app.py for hot reload
- ../../ui/data:/app/ui/data
- ../../ui/app.py:/app/app.py # Mount app.py for hot reload
environment:
- GRADIO_WATCH=True # Enable hot reloading
- PYTHONUNBUFFERED=1 # Ensure Python output is not buffered
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dependencies = [
"loguru==0.7.3",
"transformers==4.47.1",
"openai>=1.59.6",
"ebooklib>=0.18",
"html2text>=2024.2.26",
]

[project.optional-dependencies]
Expand All @@ -47,7 +49,6 @@ test = [
"pytest-asyncio==0.23.5",
"gradio>=5",
"openai>=1.59.6",
"ruff>=0.2.2",
]

[tool.uv]
Expand Down
22 changes: 22 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 58cc7c8

Please sign in to comment.