From 673dcd956fbf54a151ea5d3085014b3e5f3e494f Mon Sep 17 00:00:00 2001 From: Nicholas Felt Date: Fri, 6 Oct 2023 00:58:46 -0700 Subject: [PATCH] ci: Add extra check that the version installed is the version built. --- .github/workflows/package-testpypi.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-testpypi.yml b/.github/workflows/package-testpypi.yml index 37b375db..3549a8a8 100644 --- a/.github/workflows/package-testpypi.yml +++ b/.github/workflows/package-testpypi.yml @@ -34,6 +34,7 @@ jobs: NEW_VERSION=$(python scripts/create_post_version_for_testpypi.py --version=$CURRENT_VERSION) echo NEW_VERSION: $NEW_VERSION python scripts/project_version.py --set-version=$NEW_VERSION + echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV - uses: hynek/build-and-inspect-python-package@v1.5 id: build-pkg - name: Copy package to dist/ folder @@ -46,4 +47,4 @@ jobs: repository-url: https://test.pypi.org/legacy/ - name: Test installing from test.pypi.org run: pip install --index-url=https://test.pypi.org/simple/ --extra-index-url=https://pypi.org/simple - tm_devices + tm_devices==${{ env.NEW_VERSION }}