Skip to content

Commit

Permalink
fix: run tests on publish steps
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau committed Jan 8, 2024
1 parent 940aebc commit 779adc4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package/.github/workflows/release.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/*

0 comments on commit 779adc4

Please sign in to comment.