Skip to content

Commit

Permalink
Upgrade required uv version + remove pinned versions from tests G…
Browse files Browse the repository at this point in the history
…itHub workflow

Pinned versions were removed because `astral-sh/setup-uv` now defaults to inspecting the `pyproject.toml` to detect the version to use
  • Loading branch information
nathanpainchaud committed Jan 31, 2025
1 parent 771c0aa commit e882cd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
# It is considered best practice (by uv's developers) to pin to a specific uv version
# https://docs.astral.sh/uv/guides/integration/github/#installation
version: 0.5.14
pyproject-file: "pyproject.toml"

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand All @@ -50,9 +48,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
# It is considered best practice (by uv's developers) to pin to a specific uv version
# https://docs.astral.sh/uv/guides/integration/github/#installation
version: 0.5.14
pyproject-file: "pyproject.toml"

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv]
required-version = ">=0.5.14,<0.6"
required-version = ">=0.5.26,<0.6"
# Refer to the note above about installing pytorch using optional dependencies,
# especially the link to uv's documentation, to understand this configuration
conflicts = [
Expand Down

0 comments on commit e882cd8

Please sign in to comment.