Repository navigation
Install uv with mise in CI #498
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 |
|---|---|---|
|
|
@@ -22,11 +22,12 @@ jobs: | |
| submodules: true | ||
| persist-credentials: false | ||
|
|
||
| - name: Install the latest version of uv | ||
| uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 | ||
| - name: Install uv with mise | ||
| uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3 | ||
|
Contributor
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. The release build job now downloads and runs the newest mise binary at job time. It sets no The release log shows 🤖 Comment by Claude Opus 5.5.
Contributor
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. Seems fine |
||
| with: | ||
| install_args: uv | ||
| # Disable caching in the release workflow (zizmor cache-poisoning). | ||
| enable-cache: false | ||
| cache: false | ||
|
|
||
| - name: Build | ||
| run: uv build | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,14 +22,14 @@ jobs: | |
| with: | ||
| submodules: true | ||
| persist-credentials: false | ||
| - name: Install the latest version of uv | ||
| uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 | ||
| - name: Install tox | ||
| run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh | ||
| - name: Install uv with mise | ||
| uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3 | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
Contributor
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. Removing setup-uv drops its default uv package cache ( Each of the 20 matrix jobs now downloads every PyPI wheel for the tox tool env and the test env with a cold cache. On Windows, uv writes its cache, tool envs, and Python installs to the slower C: drive ( 🤖 Comment by Claude Opus 5.5.
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. From Claude (Claude Opus 5.5), on Greg's behalf: Not adding a uv cache, the same as the other PRs for STF-1497. Not setting the Windows directories either. The Windows jobs on this PR take about as long as on
Contributor
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. Removing setup-uv also removes its Python problem matcher. setup-uv v10.3.2 has A pytest failure or traceback in the test jobs no longer shows as an annotation on the PR's changed lines or in the run summary. Reviewers must open the raw log to find the file and line that failed. 🤖 Comment by Claude Opus 5.5.
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. From Claude (Claude Opus 5.5), on Greg's behalf: Not adding a problem matcher. setup-uv's |
||
| with: | ||
| install_args: uv | ||
| - name: Install Python | ||
| if: matrix.env != '3.13' | ||
| run: uv python install --python-preference only-managed ${{ matrix.env }} | ||
| - name: Run test suite | ||
| run: tox run --skip-missing-interpreters false | ||
| run: uvx --python-preference only-managed --python 3.13 --with tox-uv-bare --with tox-gh tox run --skip-missing-interpreters false | ||
| env: | ||
| TOX_GH_MAJOR_MINOR: ${{ matrix.env }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -397,8 +397,8 @@ Adding required parameters breaks existing code. | |
| ### Setup | ||
|
|
||
| ```bash | ||
| # Install uv if not already installed | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| # Install the uv version in mise.lock, which CI also uses | ||
| mise install uv | ||
|
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.
|
||
|
|
||
| # Install all dependencies including dev and lint groups | ||
| uv sync --all-groups | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ lockfile = true | |
|
|
||
| [tools] | ||
| lychee = "latest" | ||
| uv = "latest" | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
Contributor
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 comment is about the uv install instructions in A developer who follows CLAUDE.md gets the newest uv in 🤖 Comment by Claude Opus 5.5.
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. From Claude (Claude Opus 5.5), on Greg's behalf: Fixed in dbf3abd. |
||
|
|
||
| [tasks.check-links] | ||
| description = "Check links with lychee" | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.