From 779adc425449e030105410608352b4955e8a2b8d Mon Sep 17 00:00:00 2001 From: Rambaud Pierrick <12rambau@users.noreply.github.com> Date: Mon, 8 Jan 2024 07:44:45 +0000 Subject: [PATCH] fix: run tests on publish steps --- package/.github/workflows/release.yaml.jinja | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/package/.github/workflows/release.yaml.jinja b/package/.github/workflows/release.yaml.jinja index 184a4c7..106f6b7 100644 --- a/package/.github/workflows/release.yaml.jinja +++ b/package/.github/workflows/release.yaml.jinja @@ -5,9 +5,12 @@ on: types: [created] jobs: + tests: + uses: ./.github/workflows/unit.yml + deploy: + needs: [tests] runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -21,6 +24,4 @@ jobs: env: TWINE_USERNAME: __token__ TWINE_PASSWORD: {% raw -%}${{ secrets.PYPI_PASSWORD }}{% endraw %} - run: | - python -m build - twine upload dist/* + run: python -m build && twine upload dist/*