Skip to content

Commit 9a0521f

Browse files
committed
ci: pin gitpython for the semantic-release dry run
1 parent d07cb99 commit 9a0521f

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

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

174-
- name: Test release
175-
uses: python-semantic-release/python-semantic-release@350c48fcb3ffcdfd2e0a235206bc2ecea6b69df0 # v10.5.3
174+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v5
176175
with:
177-
no_operation_mode: true
176+
python-version: "3.12"
177+
178+
# Run PSR from pip rather than its container action so GitPython can be
179+
# pinned: 3.1.60 dropped Actor.name_email_regex, which PSR 10.5.3 reads
180+
# on every config load.
181+
- name: Install python-semantic-release
182+
run: pip install "python-semantic-release==10.5.3" "gitpython<3.1.60"
183+
184+
- name: Test release
185+
run: semantic-release -v --noop version
178186

179187
# Real release, only on master. The release environment and write/OIDC
180188
# permissions are scoped to this job so they never apply to PR runs.

0 commit comments

Comments
 (0)