Skip to content

Commit dd579b8

Browse files
authored
uv fixes (#492)
* Install uv in release workflow * Specify uv version in pyproject.toml * Upgrade packages
1 parent ca72ec4 commit dd579b8

File tree

5 files changed

+827
-820
lines changed

5 files changed

+827
-820
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,16 @@ jobs:
2828
- name: Check out the repository
2929
uses: actions/checkout@v4
3030

31-
- name: Install uv
32-
uses: astral-sh/setup-uv@v5
33-
with:
34-
version: "0.6.17"
35-
enable-cache: true
36-
3731
- name: Set up Python
38-
uses: actions/setup-python@v5.5.0
32+
uses: actions/setup-python@v5.6.0
3933
with:
4034
python-version-file: "pyproject.toml"
4135

36+
- name: Install uv
37+
uses: astral-sh/setup-uv@v6
38+
with:
39+
enable-cache: true
40+
4241
- name: Install dependencies
4342
run: |
4443
uv sync --locked --all-extras --dev

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ jobs:
2828
fetch-depth: 2
2929

3030
- name: Set up Python
31-
uses: actions/setup-python@v5.5.0
31+
uses: actions/setup-python@v5.6.0
3232
with:
33-
python-version: "3.13"
33+
python-version-file: "pyproject.toml"
34+
35+
- name: Install uv
36+
uses: astral-sh/setup-uv@v6
37+
with:
38+
enable-cache: true
3439

3540
- name: Check if there is a parent commit
3641
id: check-parent-commit

.github/workflows/tests.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ jobs:
4141
uses: actions/checkout@v4
4242

4343
- name: Set up Python ${{ matrix.python }}
44-
uses: actions/setup-python@v5.5.0
44+
uses: actions/setup-python@v5.6.0
4545
with:
4646
python-version: ${{ matrix.python }}
4747

4848
- name: Install uv
49-
uses: astral-sh/setup-uv@v5
49+
uses: astral-sh/setup-uv@v6
5050
with:
51-
version: "0.6.17"
5251
enable-cache: true
5352

5453
- name: Compute pre-commit cache key
@@ -104,15 +103,9 @@ jobs:
104103
with:
105104
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
106105

107-
- name: Set up Python
108-
uses: actions/setup-python@v5.5.0
109-
with:
110-
python-version: "3.13"
111-
112106
- name: Install uv
113-
uses: astral-sh/setup-uv@v5
107+
uses: astral-sh/setup-uv@v6
114108
with:
115-
version: "0.6.17"
116109
enable-cache: true
117110

118111
- name: Download coverage data

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ packages = ["src/datadoc_editor"]
7171
[tool.pytest.ini_options]
7272
pythonpath = ["src/datadoc_editor"]
7373

74+
[tool.uv]
75+
required-version = ">=0.6.17"
76+
7477
[tool.coverage.paths]
7578
source = ["src", "*/site-packages"]
7679
tests = ["tests", "*/tests"]

0 commit comments

Comments
 (0)