From 91a3c04b82b5f6e9dd75d1431cfdc397cedd4afd Mon Sep 17 00:00:00 2001 From: Ivo Vellekoop Date: Fri, 4 Oct 2024 12:53:01 +0200 Subject: [PATCH 1/3] Update testpypi.yml --- .github/workflows/testpypi.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpypi.yml b/.github/workflows/testpypi.yml index 341d478..cacf109 100644 --- a/.github/workflows/testpypi.yml +++ b/.github/workflows/testpypi.yml @@ -1,14 +1,20 @@ name: Publish to TestPyPI using Poetry +# trigger upload on a new push to master on: push: branches: - - master # You can change this to the branch you want to trigger the workflow - + - master + jobs: build: runs-on: ubuntu-latest + # enable openid authentication for PyPi + permissions: + id-token: write # Required for OIDC + contents: read + steps: # Checkout the repository - name: Check out the repository From 49db0e6399888aa4be4e1edf1895704563a9bfca Mon Sep 17 00:00:00 2001 From: Ivo Vellekoop Date: Fri, 4 Oct 2024 13:02:32 +0200 Subject: [PATCH 2/3] Temporarily disabled tests --- .github/workflows/pytest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index b726147..4ff4e93 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,6 +1,7 @@ name: PyTest -on: [workflow_call, push, pull_request] +on: +# [workflow_call, push, pull_request] jobs: build: From ca40a14c9e309445321684225b1442d3ef95660c Mon Sep 17 00:00:00 2001 From: Ivo Vellekoop Date: Fri, 4 Oct 2024 13:12:46 +0200 Subject: [PATCH 3/3] Update testpypi.yml --- .github/workflows/testpypi.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/testpypi.yml b/.github/workflows/testpypi.yml index cacf109..ad5f310 100644 --- a/.github/workflows/testpypi.yml +++ b/.github/workflows/testpypi.yml @@ -13,7 +13,6 @@ jobs: # enable openid authentication for PyPi permissions: id-token: write # Required for OIDC - contents: read steps: # Checkout the repository @@ -28,9 +27,10 @@ jobs: # Install Poetry - name: Install Poetry - run: | - curl -sSL https://install.python-poetry.org | python3 - - + uses: abatilo/actions-poetry@v2 + with: + version: '1.8.3' + # Install dependencies and build the project - name: Install dependencies and build package run: | @@ -40,4 +40,4 @@ jobs: # Publish to TestPyPI - name: Publish to TestPyPI run: | - poetry publish --repository testpypi --build + poetry publish --repository testpypi