Skip to content

Commit 720db1f

Browse files
authored
Only release on pypi after tests pass (#1452)
1 parent 4ac3f3f commit 720db1f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ on:
66
- 'v*'
77

88
jobs:
9-
build:
9+
lint:
10+
uses: ./.github/workflows/lint.yml
11+
tests:
12+
uses: ./.github/workflows/tests.yml
13+
release:
1014
runs-on: ubuntu-latest
15+
needs: [lint, tests]
1116

1217
steps:
1318
- uses: actions/checkout@v3

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: ["main"]
66
pull_request:
7+
workflow_call:
78

89
jobs:
910
build:

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: ["main"]
66
pull_request:
7+
workflow_call:
78

89
jobs:
910
build:

0 commit comments

Comments
 (0)