Skip to content

Commit e54869a

Browse files
add test workflow call to release workflow (#93)
1 parent d38ee43 commit e54869a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
push:
1010
branches:
1111
- main
12+
- "release/*"
1213
tags:
1314
- "*"
1415
pull_request:
@@ -17,7 +18,7 @@ on:
1718
workflow_dispatch:
1819

1920
concurrency:
20-
group: test-${{ github.head_ref }}
21+
group: ${{ github.workflow }}-${{ github.head_ref }}
2122
cancel-in-progress: true
2223

2324
permissions:
@@ -158,10 +159,16 @@ jobs:
158159
name: wheels-sdist
159160
path: dist
160161

162+
test:
163+
uses: ./.github/workflows/test.yml
164+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
165+
with:
166+
os: "macos-latest,ubuntu-latest,windows-latest"
167+
161168
release:
162169
runs-on: ubuntu-latest
163170
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
164-
needs: [linux, musllinux, windows, macos, sdist]
171+
needs: [linux, musllinux, windows, macos, sdist, test]
165172
environment: release
166173
permissions:
167174
# Use to sign the release artifacts

0 commit comments

Comments
 (0)