From 0d506f987396e48afb863540fcac02c92861b12c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Rom=C3=A1n?= Date: Tue, 16 Dec 2025 23:53:17 -0800 Subject: [PATCH] ci(publish): run tox before publishing add missing checkout-ref to ci workflow --- .github/workflows/ci.yml | 2 ++ .github/workflows/publish.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05bf7da..103d5e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,8 @@ jobs: tox-package: if: ${{ github.event_name == 'pull_request' }} uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v6 + with: + checkout-ref: ${{ github.ref }} tox-stubs: if: ${{ github.event_name == 'pull_request' }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5ad85ff..d511bcd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,7 +5,24 @@ on: types: [published] jobs: + tox-package: + uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v6 + with: + checkout-ref: ${{ github.event.release.tag_name }} + + tox-stubs: + uses: coatl-dev/workflows/.github/workflows/tox.yml@v6 + with: + python-versions: | + 3.9 + 3.10 + 3.11 + 3.12 + working-directory: stubs + checkout-ref: ${{ github.event.release.tag_name }} + pypi-upload: + needs: [tox-package, tox-stubs] runs-on: ubuntu-latest steps: - name: Checkout repo