From 82caeac53419587222e6d3f0c17dfc40bd632744 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 3 Oct 2026 10:57:05 +0000 Subject: [PATCH] Run the tests before publishing a release The release workflow went straight from installing to building and publishing to PyPI. Nothing stopped a release of a commit whose tests fail. Now the tests run first, and a failure stops the job before anything is built or published. --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 800a691c..18476c4d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,6 +44,8 @@ jobs: poetry config virtualenvs.in-project true - name: 🏗 Install dependencies run: poetry install --no-interaction + - name: 🚀 Run pytest + run: poetry run pytest tests - name: 🏗 Set package version env: RELEASE_TAG: ${{ github.event.release.tag_name }}