Skip to content

Commit 60796a5

Browse files
committed
chore: try running a test release on every PR
1 parent 51eab00 commit 60796a5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,32 @@ jobs:
6262
activate-environment: true
6363
- name: Build package
6464
run: uv build
65+
66+
# Test semantic-release configuration on PR branches
67+
test-release:
68+
name: Test Semantic Release
69+
runs-on: ubuntu-latest
70+
if: github.event_name == 'pull_request'
71+
steps:
72+
- uses: actions/checkout@v5
73+
with:
74+
fetch-depth: 0
75+
- name: Test Semantic Release (No-op)
76+
id: test-release
77+
uses: python-semantic-release/python-semantic-release@v10.4.1
78+
with:
79+
github_token: ${{ secrets.GITHUB_TOKEN }}
80+
changelog: true
81+
# Use noop mode to test without making changes
82+
root_options: "--noop"
83+
- name: Test Semantic Release (Dry Run)
84+
id: test-release-dry
85+
uses: python-semantic-release/python-semantic-release@v10.4.1
86+
with:
87+
github_token: ${{ secrets.GITHUB_TOKEN }}
88+
changelog: true
89+
# Use dry run mode to test without committing
90+
root_options: "--no-commit --no-tag --no-push"
6591
release:
6692
runs-on: ubuntu-latest
6793
needs:

0 commit comments

Comments
 (0)