Skip to content

Commit 6d65218

Browse files
Allow manually dispatching and don't run builds till tests done
1 parent 9b7994f commit 6d65218

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
tags:
99
- "*"
1010
pull_request:
11+
workflow_dispatch:
1112

1213
# Allow one concurrent deployment
1314
concurrency:
@@ -86,6 +87,7 @@ jobs:
8687
linux:
8788
name: build linux
8889
runs-on: ubuntu-latest
90+
needs: [test]
8991
steps:
9092
- uses: actions/checkout@v3
9193
- uses: PyO3/[email protected]
@@ -102,6 +104,7 @@ jobs:
102104
windows:
103105
name: build windows
104106
runs-on: windows-latest
107+
needs: [test]
105108
steps:
106109
- uses: actions/checkout@v3
107110
- uses: PyO3/[email protected]
@@ -117,6 +120,7 @@ jobs:
117120
macos:
118121
name: build macos
119122
runs-on: macos-latest
123+
needs: [test]
120124
steps:
121125
- uses: actions/checkout@v3
122126
- uses: PyO3/[email protected]
@@ -132,7 +136,7 @@ jobs:
132136
release:
133137
name: Release
134138
runs-on: ubuntu-latest
135-
if: startsWith(github.ref, 'refs/tags/')
139+
if: startsWith(github.ref, 'refs/tags/') || (github.event_name == 'workflow_dispatch')
136140
needs: [macos, windows, linux]
137141
steps:
138142
- uses: actions/download-artifact@v2

0 commit comments

Comments
 (0)