From 7dcb85ef36fd50971b89dd2f7f0c11ba735bd2db Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 09:41:10 -0400 Subject: [PATCH 01/17] ci experiments --- .github/workflows/release.yml | 42 ++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 953b0b4d..f95367c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,7 @@ name: Release on: push: branches: - - main - - master + - as/uv-ci jobs: release: @@ -47,9 +46,11 @@ jobs: - name: Bump version for developmental release if: "! steps.check-version.outputs.tag" run: | + echo "no outputs tag" poetry version patch && version=$(poetry version | awk '{ print $2 }') && poetry version $version.dev.$(date +%s) + poetry version - name: Build package run: | @@ -57,23 +58,28 @@ jobs: - name: Publish package on PyPI if: steps.check-version.outputs.tag - uses: pypa/gh-action-pypi-publish@v1.12.2 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} + run: | + echo "Got a tag but not publishing" + echo "tag: ${{ steps.check-version.outputs.tag }}" + # uses: pypa/gh-action-pypi-publish@v1.12.2 + # with: + # user: __token__ + # password: ${{ secrets.PYPI_TOKEN }} - name: Publish package on TestPyPI if: "! steps.check-version.outputs.tag" - uses: pypa/gh-action-pypi-publish@v1.12.2 - with: - user: __token__ - password: ${{ secrets.TEST_PYPI_TOKEN }} - repository_url: https://test.pypi.org/legacy/ + run: | + echo "Got no tag, should publish to TestPyPI, but not" + # uses: pypa/gh-action-pypi-publish@v1.12.2 + # with: + # user: __token__ + # password: ${{ secrets.TEST_PYPI_TOKEN }} + # repository_url: https://test.pypi.org/legacy/ - - name: Publish the release notes - uses: release-drafter/release-drafter@v6.0.0 - with: - publish: ${{ steps.check-version.outputs.tag != '' }} - tag: ${{ steps.check-version.outputs.tag }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Publish the release notes + # uses: release-drafter/release-drafter@v6.0.0 + # with: + # publish: ${{ steps.check-version.outputs.tag != '' }} + # tag: ${{ steps.check-version.outputs.tag }} + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f0d557e66bb47c2cde6c417aabf6a048a279ba9e Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 09:46:19 -0400 Subject: [PATCH 02/17] disable tests for publishing experiments --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ffc07493..ce1db988 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,7 @@ on: - pull_request jobs: + if: false tests: name: ${{ matrix.session }} ${{ matrix.python }} / ${{ matrix.os }} runs-on: ${{ matrix.os }} From 23f42eb4f86a09f3a2d1d10f58ff7f0853da9d65 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 09:55:18 -0400 Subject: [PATCH 03/17] Update tests.yml --- .github/workflows/tests.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce1db988..bfd110c6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,11 +1,25 @@ name: Tests -on: - - push - - pull_request - +on: + workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: true + default: 'warning' + type: choice + options: + - info + - debug + print_tags: + description: 'True to print to STDOUT' + required: true + type: boolean + tags: + description: 'Test scenario tags' + required: true + type: string jobs: - if: false tests: name: ${{ matrix.session }} ${{ matrix.python }} / ${{ matrix.os }} runs-on: ${{ matrix.os }} From 826ec4724971cf1dfeb8487e36b205788362cde6 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 10:02:43 -0400 Subject: [PATCH 04/17] Update release.yml --- .github/workflows/release.yml | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f95367c3..5a1afc36 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,18 +18,14 @@ jobs: - name: Set up Python uses: actions/setup-python@v5.6.0 with: - python-version: "3.11" - - - name: Upgrade pip - run: | - pip install --constraint=.github/workflows/constraints.txt pip - pip --version - - - name: Install Poetry - run: | - pip install --constraint=.github/workflows/constraints.txt poetry - poetry --version + python-version: "3.13" + - name: Install uv + uses: astral-sh/setup-uv@v6 + with: + version: "0.8.8" + enable-cache: true + - name: Check if there is a parent commit id: check-parent-commit run: | @@ -41,20 +37,20 @@ jobs: uses: salsify/action-detect-and-tag-new-version@v2.0.3 with: version-command: | - bash -o pipefail -c "poetry version | awk '{ print \$2 }'" + bash -o pipefail -c "uv version | awk '{ print \$2 }'" - name: Bump version for developmental release if: "! steps.check-version.outputs.tag" run: | echo "no outputs tag" - poetry version patch && - version=$(poetry version | awk '{ print $2 }') && - poetry version $version.dev.$(date +%s) - poetry version + uv version --bump patch && + version=$(uv version | awk '{ print $2 }') && + uv version $version.dev.$(date +%s) + uv version - name: Build package run: | - poetry build --ansi + uv build - name: Publish package on PyPI if: steps.check-version.outputs.tag From a56683d41720919f61d903371462c32ed40f3f95 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 12:09:48 -0400 Subject: [PATCH 05/17] Update release.yml --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a1afc36..2509bbcd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,12 +65,12 @@ jobs: - name: Publish package on TestPyPI if: "! steps.check-version.outputs.tag" run: | - echo "Got no tag, should publish to TestPyPI, but not" - # uses: pypa/gh-action-pypi-publish@v1.12.2 - # with: - # user: __token__ - # password: ${{ secrets.TEST_PYPI_TOKEN }} - # repository_url: https://test.pypi.org/legacy/ + echo "Got no tag, publishing to TestPyPI" + uses: pypa/gh-action-pypi-publish@v1.12.2 + with: + user: __token__ + password: ${{ secrets.TEST_PYPI_TOKEN }} + repository_url: https://test.pypi.org/legacy/ # - name: Publish the release notes # uses: release-drafter/release-drafter@v6.0.0 From 7900aee4991a78f579a7b3c33f6cfe43e45362d5 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 12:13:25 -0400 Subject: [PATCH 06/17] Update release.yml --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2509bbcd..e9c944dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,9 +68,9 @@ jobs: echo "Got no tag, publishing to TestPyPI" uses: pypa/gh-action-pypi-publish@v1.12.2 with: - user: __token__ - password: ${{ secrets.TEST_PYPI_TOKEN }} - repository_url: https://test.pypi.org/legacy/ + user: __token__ + password: ${{ secrets.TEST_PYPI_TOKEN }} + repository_url: https://test.pypi.org/legacy/ # - name: Publish the release notes # uses: release-drafter/release-drafter@v6.0.0 From 46dde07064659ff488f450dabd3f7198c73116b7 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 12:16:43 -0400 Subject: [PATCH 07/17] Update release.yml --- .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 e9c944dc..2984e425 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,7 +66,7 @@ jobs: if: "! steps.check-version.outputs.tag" run: | echo "Got no tag, publishing to TestPyPI" - uses: pypa/gh-action-pypi-publish@v1.12.2 + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.TEST_PYPI_TOKEN }} From a0e7bc5cbd5f49d0da9d03b7526ed3478a20ff2f Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 12:19:26 -0400 Subject: [PATCH 08/17] Update release.yml --- .github/workflows/release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2984e425..3e1cf352 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,13 +64,11 @@ jobs: - name: Publish package on TestPyPI if: "! steps.check-version.outputs.tag" - run: | - echo "Got no tag, publishing to TestPyPI" - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.TEST_PYPI_TOKEN }} - repository_url: https://test.pypi.org/legacy/ + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.TEST_PYPI_TOKEN }} + repository_url: https://test.pypi.org/legacy/ # - name: Publish the release notes # uses: release-drafter/release-drafter@v6.0.0 From 7c8c84c00ac826660d1dbabb98c951d7c660020c Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 12:21:40 -0400 Subject: [PATCH 09/17] Update release.yml --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e1cf352..774595f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,11 +64,12 @@ jobs: - name: Publish package on TestPyPI if: "! steps.check-version.outputs.tag" - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@v1.12.2 with: user: __token__ password: ${{ secrets.TEST_PYPI_TOKEN }} repository_url: https://test.pypi.org/legacy/ + verbose: true # - name: Publish the release notes # uses: release-drafter/release-drafter@v6.0.0 From 673e78441a582367fa2a410c8a2d9669e4a0eaaa Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 12:26:54 -0400 Subject: [PATCH 10/17] Update release.yml --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 774595f3..f57e05fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,6 +52,11 @@ jobs: run: | uv build + - name: Upgrade pip + run: | + pip install --constraint=.github/workflows/constraints.txt pip + pip --version + - name: Publish package on PyPI if: steps.check-version.outputs.tag run: | From 41556eddd094a36e78d0c113ce6cc6f3a1446166 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 12:42:58 -0400 Subject: [PATCH 11/17] Update release.yml --- .github/workflows/release.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f57e05fb..7b66f2e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,17 @@ jobs: - name: Set up Python uses: actions/setup-python@v5.6.0 with: - python-version: "3.13" + python-version: "3.11" + + - name: Upgrade pip + run: | + pip install --constraint=.github/workflows/constraints.txt pip + pip --version + + - name: Install Poetry + run: | + pip install --constraint=.github/workflows/constraints.txt poetry + poetry --version - name: Install uv uses: astral-sh/setup-uv@v6 @@ -52,11 +62,6 @@ jobs: run: | uv build - - name: Upgrade pip - run: | - pip install --constraint=.github/workflows/constraints.txt pip - pip --version - - name: Publish package on PyPI if: steps.check-version.outputs.tag run: | From ca0a4af7d4adb871fe25bfe4551d885bce8397f3 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 12:46:57 -0400 Subject: [PATCH 12/17] Update release.yml --- .github/workflows/release.yml | 39 ++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b66f2e7..792a97bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,24 +62,29 @@ jobs: run: | uv build - - name: Publish package on PyPI - if: steps.check-version.outputs.tag - run: | - echo "Got a tag but not publishing" - echo "tag: ${{ steps.check-version.outputs.tag }}" - # uses: pypa/gh-action-pypi-publish@v1.12.2 - # with: - # user: __token__ - # password: ${{ secrets.PYPI_TOKEN }} + # - name: Publish package on PyPI + # if: steps.check-version.outputs.tag + # run: | + # echo "Got a tag but not publishing" + # echo "tag: ${{ steps.check-version.outputs.tag }}" + # # uses: pypa/gh-action-pypi-publish@v1.12.2 + # # with: + # # user: __token__ + # # password: ${{ secrets.PYPI_TOKEN }} - - name: Publish package on TestPyPI - if: "! steps.check-version.outputs.tag" - uses: pypa/gh-action-pypi-publish@v1.12.2 - with: - user: __token__ - password: ${{ secrets.TEST_PYPI_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - verbose: true + # - name: Publish package on TestPyPI + # if: "! steps.check-version.outputs.tag" + # uses: pypa/gh-action-pypi-publish@v1.12.2 + # with: + # user: __token__ + # password: ${{ secrets.TEST_PYPI_TOKEN }} + # repository_url: https://test.pypi.org/legacy/ + # verbose: true + + - name: Publish package + run: uv publish + env: + UV_PUBLISH_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }} # - name: Publish the release notes # uses: release-drafter/release-drafter@v6.0.0 From d2cbca7f9e2184db5631824cabbdc30385bdcc62 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 14:08:41 -0400 Subject: [PATCH 13/17] Update release.yml --- .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 792a97bb..53871621 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,7 +82,7 @@ jobs: # verbose: true - name: Publish package - run: uv publish + run: uv publish --index https://test.pypi.org/legacy/ env: UV_PUBLISH_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }} From 570cbfefa9e67092a0448796892a98526937e76d Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 15:34:09 -0400 Subject: [PATCH 14/17] Update release.yml From 0f1dd209561f195876b79348bd15e866ec54227b Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 15:39:09 -0400 Subject: [PATCH 15/17] Update release.yml --- .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 53871621..01343ef9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,7 +82,7 @@ jobs: # verbose: true - name: Publish package - run: uv publish --index https://test.pypi.org/legacy/ + run: uv publish --publish-url https://test.pypi.org/legacy/ env: UV_PUBLISH_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }} From c867ab24f3812ad45239a1605d47767192eecb80 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 15:43:57 -0400 Subject: [PATCH 16/17] Update release.yml --- .github/workflows/release.yml | 38 ++++++++--------------------------- 1 file changed, 8 insertions(+), 30 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01343ef9..27efe4e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,17 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5.6.0 with: - python-version: "3.11" - - - name: Upgrade pip - run: | - pip install --constraint=.github/workflows/constraints.txt pip - pip --version - - - name: Install Poetry - run: | - pip install --constraint=.github/workflows/constraints.txt poetry - poetry --version + python-version: "3.13" - name: Install uv uses: astral-sh/setup-uv@v6 @@ -62,26 +52,14 @@ jobs: run: | uv build - # - name: Publish package on PyPI - # if: steps.check-version.outputs.tag - # run: | - # echo "Got a tag but not publishing" - # echo "tag: ${{ steps.check-version.outputs.tag }}" - # # uses: pypa/gh-action-pypi-publish@v1.12.2 - # # with: - # # user: __token__ - # # password: ${{ secrets.PYPI_TOKEN }} - - # - name: Publish package on TestPyPI - # if: "! steps.check-version.outputs.tag" - # uses: pypa/gh-action-pypi-publish@v1.12.2 - # with: - # user: __token__ - # password: ${{ secrets.TEST_PYPI_TOKEN }} - # repository_url: https://test.pypi.org/legacy/ - # verbose: true + - name: Publish package Publish package on **PyPI** + if: "steps.check-version.outputs.tag" + run: uv publish + env: + UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} - - name: Publish package + - name: Publish package Publish package on **TestPyPI** + if: "! steps.check-version.outputs.tag" run: uv publish --publish-url https://test.pypi.org/legacy/ env: UV_PUBLISH_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }} From 5512532ff7e6a439ad3efa870cc129264abb51e8 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Mon, 11 Aug 2025 17:56:34 -0400 Subject: [PATCH 17/17] Update release.yml --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27efe4e5..fc0106a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,10 +64,10 @@ jobs: env: UV_PUBLISH_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }} - # - name: Publish the release notes - # uses: release-drafter/release-drafter@v6.0.0 - # with: - # publish: ${{ steps.check-version.outputs.tag != '' }} - # tag: ${{ steps.check-version.outputs.tag }} - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish the release notes + uses: release-drafter/release-drafter@v6.0.0 + with: + publish: ${{ steps.check-version.outputs.tag != '' }} + tag: ${{ steps.check-version.outputs.tag }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}