From 5918458d473e62445e1e9ef1103812fdfe5646ec Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Thu, 16 May 2024 07:13:02 +0000 Subject: [PATCH] try get scraibe version for later test install --- .github/workflows/pypi.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 9181e65..dd49ce9 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -14,18 +14,12 @@ on: type: boolean jobs: - Build-and-publish-to-Test-PyPI: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: '0' - - name: Setup package Name - if: ${{ github.ref_name == 'pyproject.toml'}} - run: | - sed -i 's/name = "scraibe"/name = "scraibe-nightly"/' pyproject.toml - echo "You are running on the develop branch deploying to nightly!" - name: Set up Poetry 📦 if: ${{ !(startsWith(github.ref, 'refs/tags')) }} uses: JRubics/poetry-publish@v1.16 @@ -34,6 +28,17 @@ jobs: plugins: "poetry-dynamic-versioning" repository_name: "scraibe" repository_url: "https://test.pypi.org/legacy/" + - name: Get the version + run: | + echo "SCRAIBE_VERSION=$(python -c 'import scraibe; print(scraibe.__version__)')" >> $GITHUB_ENV + echo "SCRAIBE_VERSION=$SCRAIBE_VERSION" + - name: 'Upload Artifact' + uses: actions/upload-artifact@v4 + with: + name: build + path: ./sdist + retention-days: 5 + test-install: name: Test Installation from TestPyPI