add test workflow call to release workflow (#93)

This commit is contained in:
Josh Thomas 2025-04-21 10:15:41 -05:00 committed by GitHub
parent d38ee4361d
commit e54869a151
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,7 @@ on:
push: push:
branches: branches:
- main - main
- "release/*"
tags: tags:
- "*" - "*"
pull_request: pull_request:
@ -17,7 +18,7 @@ on:
workflow_dispatch: workflow_dispatch:
concurrency: concurrency:
group: test-${{ github.head_ref }} group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:
@ -158,10 +159,16 @@ jobs:
name: wheels-sdist name: wheels-sdist
path: dist path: dist
test:
uses: ./.github/workflows/test.yml
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
with:
os: "macos-latest,ubuntu-latest,windows-latest"
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
needs: [linux, musllinux, windows, macos, sdist] needs: [linux, musllinux, windows, macos, sdist, test]
environment: release environment: release
permissions: permissions:
# Use to sign the release artifacts # Use to sign the release artifacts