From 720db1f9874b2a1e2727a66b27c5a634f57bfaaf Mon Sep 17 00:00:00 2001 From: Kien Dang Date: Fri, 11 Aug 2023 14:51:59 +0800 Subject: [PATCH] Only release on pypi after tests pass (#1452) --- .github/workflows/deploy.yml | 7 ++++++- .github/workflows/lint.yml | 1 + .github/workflows/tests.yml | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5d5ae27..770a20a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,8 +6,13 @@ on: - 'v*' jobs: - build: + lint: + uses: ./.github/workflows/lint.yml + tests: + uses: ./.github/workflows/tests.yml + release: runs-on: ubuntu-latest + needs: [lint, tests] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 920ecf0..f21811e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,6 +4,7 @@ on: push: branches: ["main"] pull_request: + workflow_call: jobs: build: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 17876a2..ee3af6a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,6 +4,7 @@ on: push: branches: ["main"] pull_request: + workflow_call: jobs: build: