Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: test

env:
PYTHONUNBUFFERED: "1"
UV_SYSTEM_PYTHON: 1
UV_FROZEN: 1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This env var ensures that we don't attempt to update the lockfile every time we run a uv command in this workflow. That wouldn't be a big deal, but it would be a waste of time since we wouldn't ever use the new lockfile even if the workflow were to generate one. See the docs for Automatic locking and syncing for more background.


jobs:
test:
Expand All @@ -33,9 +33,9 @@ jobs:
- name: Install dependencies
working-directory: python
shell: bash
run: uv pip install .[tests]
run: uv sync --extra tests

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is equivalent to uv pip install ., but it respects the contents of the lockfile (in this case, python/uv.lock).


- name: Run Python tests
shell: bash
working-directory: python
run: pytest
run: uv run pytest

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrapping this pytest call in uv run tells uv to load the virtual environment in the current working directory (in this case, python/) before running the command.

Loading