Repository navigation
Update Python test workflow to ensure we install dependencies from uv lockfile #499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ name: test | |
|
|
||
| env: | ||
| PYTHONUNBUFFERED: "1" | ||
| UV_SYSTEM_PYTHON: 1 | ||
| UV_FROZEN: 1 | ||
|
|
||
| jobs: | ||
| test: | ||
|
|
@@ -33,9 +33,9 @@ jobs: | |
| - name: Install dependencies | ||
| working-directory: python | ||
| shell: bash | ||
| run: uv pip install .[tests] | ||
| run: uv sync --extra tests | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is equivalent to |
||
|
|
||
| - name: Run Python tests | ||
| shell: bash | ||
| working-directory: python | ||
| run: pytest | ||
| run: uv run pytest | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wrapping this pytest call in |
||
There was a problem hiding this comment.
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
uvcommand 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.