Skip to content

Commit b12b294

Browse files
added test workflow dependency to deployment
1 parent b1b0db6 commit b12b294

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/deploy_on_pypi.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ permissions:
1111
contents: write
1212

1313
jobs:
14-
14+
run_test_suite:
15+
uses: ./.github/workflows/python-test.yml
1516

1617
deploy:
1718
runs-on: ubuntu-latest
18-
19+
needs: run_test_suite
1920

2021
steps:
2122
- uses: actions/checkout@v3
@@ -30,7 +31,7 @@ jobs:
3031
- name: Build package
3132
run: python -m build
3233
- name: Publish package
33-
uses: pypa/gh-action-pypi-publish@master
34+
uses: pypa/gh-action-pypi-publish@release/v1
3435
with:
3536
user: __token__
3637
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
pull_request:
1212
branches:
1313
- develop
14+
workflow_call:
1415

1516
permissions:
1617
contents: read

0 commit comments

Comments
 (0)