Skip to content

Commit 2e4e0ba

Browse files
Copilotpvliesdonk
andauthored
fix: CI workflow
* Initial plan * Initial analysis complete Co-authored-by: pvliesdonk <22190282+pvliesdonk@users.noreply.github.com> * Convert CI workflow to uv-first approach and remove pip usage Co-authored-by: pvliesdonk <22190282+pvliesdonk@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pvliesdonk <22190282+pvliesdonk@users.noreply.github.com>
1 parent c200dee commit 2e4e0ba

File tree

3 files changed

+8
-187
lines changed

3 files changed

+8
-187
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ jobs:
138138
with:
139139
python-version: '3.11'
140140
- name: Install uv
141-
run: pip install uv
141+
uses: astral-sh/setup-uv@v3
142+
with:
143+
version: "latest"
142144
- name: Install dependencies
143145
run: uv sync --extra docs
144146
- name: Build documentation
@@ -175,12 +177,12 @@ jobs:
175177
- name: Install project (dev)
176178
run: uv sync --extra dev
177179
- name: Install python-semantic-release (CLI)
178-
run: uv pip install --system --upgrade python-semantic-release
180+
run: uv tool install python-semantic-release
179181
- name: Semantic Release (publish)
180182
env:
181183
GH_TOKEN: ${{ secrets.RELEASE_PAT }}
182184
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
183185
run: |
184-
uv run -- semantic-release -v version
185-
uv run -- semantic-release -v publish
186+
uv tool run python-semantic-release -v version
187+
uv tool run python-semantic-release -v publish
186188

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ dev = [
2828
"hypothesis>=6.0.0",
2929
"ruff>=0.1.0",
3030
"twine>=5.0.0",
31-
"python-semantic-release>=9.0.0",
3231
"pyright>=1.1.389",
3332
"pre-commit>=4.0.0",
3433
]
@@ -92,7 +91,7 @@ ignore = []
9291

9392
[tool.semantic_release]
9493
version_toml = ["pyproject.toml:project.version"]
95-
build_command = "pip install uv && uv build"
94+
build_command = "uv build"
9695
commit_message = "chore(release): {version}"
9796
commit_parser = "angular"
9897
logging_use_named_masks = false

0 commit comments

Comments
 (0)