From c1789f58549d5f79832bb35486f226e88b908c67 Mon Sep 17 00:00:00 2001 From: Alexander Goscinski Date: Tue, 24 Jun 2025 12:49:44 +0200 Subject: [PATCH 1/2] Remove the publish-testpypi step in release workflow TestPyPI keeps the metadata every published package. So republishing with the same version does not work. Since the main purpose of the workflow is to test the release pipeline. We just the publishing step to be able to run it on each commit. --- .github/workflows/release.yml | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20f3c95b5b..4240e93511 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -105,30 +105,3 @@ jobs: FLIT_USERNAME: __token__ FLIT_PASSWORD: ${{ secrets.PYPI_KEY }} FLIT_INDEX_URL: https://pypi.org/ - - publish-testpypi: - if: github.event_name == 'pull_request' && contains(fromJson(toJson(github.event.pull_request.labels)).*.name, 'test-release') - - name: Publish to test PyPI - - needs: [pre-commit, tests] - - runs-on: ubuntu-24.04 - - steps: - - name: Checkout source - uses: actions/checkout@v4 - - name: Set up Python 3.9 - uses: actions/setup-python@v5 - with: - python-version: '3.9' - - name: install flit - run: | - pip install flit~=3.4 - - name: Build and publish - run: | - flit publish - env: - FLIT_USERNAME: __token__ - FLIT_PASSWORD: ${{ secrets.TEST_PYPI_KEY }} - FLIT_INDEX_URL: https://test.pypi.org/legacy/ From 0075c346684be4941e7833af007e51fde890c422 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 26 Jun 2025 15:48:30 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d391399753..5ac682220d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,4 +132,4 @@ jobs: env: FLIT_USERNAME: __token__ FLIT_PASSWORD: ${{ secrets.TEST_PYPI_KEY }} - FLIT_INDEX_URL: https://test.pypi.org/legacy/ \ No newline at end of file + FLIT_INDEX_URL: https://test.pypi.org/legacy/