Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ jobs:
uv run --no-project
--with ./extras/chronicle-client
--with pytest
--with pytest-asyncio
pytest extras/chronicle-client/tests -q

backend-unit:
Expand Down Expand Up @@ -152,7 +153,20 @@ jobs:
# imported transitively during test collection.
# ffmpeg: the audio-persistence tests shell out to the binary to convert
# and reconstruct WAV/Opus chunks.
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libopus0 ffmpeg
# ripgrep: the vault grep tool runs the binary.
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libopus0 ffmpeg ripgrep

- name: Set up Node
uses: actions/setup-node@v4.0.2
with:
node-version: "22.19.0"

- name: Install Pi
# The Pi executor and vault tool tests drive the real Pi CLI. Keep the
# versions in step with NODE_VERSION and PI_VERSION in backend/Dockerfile.
run: >-
npm install --global --omit=dev --ignore-scripts --no-audit --no-fund
@earendil-works/pi-coding-agent@0.85.1

- name: Install test dependencies
run: uv sync --locked --group test
Expand Down Expand Up @@ -204,11 +218,11 @@ jobs:
version: "latest"

- name: Install test dependencies
run: uv sync --locked --group test
run: uv sync --locked --group test --group faster-whisper

- name: Run unit tests with coverage
run: >-
uv run --group test pytest
uv run --group test --group faster-whisper pytest
--ignore=tests/test_parakeet_service.py
--cov=common
--cov=providers
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/test_device_job_priority.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
async def test_explicit_source_request_precedes_background_backlog_and_claims_atomically(
mongo_service,
):
client = AsyncIOMotorClient(os.environ["MONGODB_URI"])
client = AsyncIOMotorClient(os.getenv("MONGODB_URI", "mongodb://localhost:27018"))
database = "test_device_job_priority_" + uuid4().hex
try:
await init_beanie(
Expand Down