mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-25 12:56:22 +02:00
github-actions: restrict build jobs to only run if a release is created
This commit is contained in:
parent
15382a4446
commit
b39ade5164
1 changed files with 3 additions and 0 deletions
3
.github/workflows/test-and-deploy.yml
vendored
3
.github/workflows/test-and-deploy.yml
vendored
|
|
@ -99,6 +99,7 @@ jobs:
|
|||
pytest GPy/testing
|
||||
|
||||
build-windows:
|
||||
if: github.event_name == 'release'
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest]
|
||||
|
|
@ -131,6 +132,7 @@ jobs:
|
|||
path: dist
|
||||
|
||||
build-macos:
|
||||
if: github.event_name == 'release'
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest]
|
||||
|
|
@ -162,6 +164,7 @@ jobs:
|
|||
path: dist/*
|
||||
|
||||
build-linux:
|
||||
if: github.event_name == 'release'
|
||||
strategy:
|
||||
matrix:
|
||||
python: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue