Skip to content

Commit 38d9fff

Browse files
committed
fix: resolve CI failures on python-zeroconf#1821 (attempt 1)
1 parent 014061e commit 38d9fff

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,19 @@ jobs:
171171
BRANCH: ${{ github.head_ref || github.ref_name }}
172172
run: git switch -C "$BRANCH"
173173

174+
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
175+
176+
# Run semantic-release directly instead of through its action: the
177+
# action resolves its dependencies when the runner builds its image,
178+
# so it picks up GitPython >= 3.1.60, which dropped
179+
# Actor.name_email_regex and breaks every semantic-release command
180+
# (python-semantic-release#1476). Nothing the action exposes can
181+
# constrain that; pinning here can. Drop once upstream releases a fix.
174182
- name: Test release
175-
uses: python-semantic-release/python-semantic-release@350c48fcb3ffcdfd2e0a235206bc2ecea6b69df0 # v10.5.3
176-
with:
177-
no_operation_mode: true
183+
run: >
184+
uvx --from 'python-semantic-release==10.5.3'
185+
--with 'gitpython<3.1.60'
186+
semantic-release -v --noop version
178187
179188
# Real release, only on master. The release environment and write/OIDC
180189
# permissions are scoped to this job so they never apply to PR runs.

0 commit comments

Comments
 (0)