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: diff --git a/.github/workflows/testpypi.yml b/.github/workflows/testpypi.yml index 341d478..ad5f310 100644 --- a/.github/workflows/testpypi.yml +++ b/.github/workflows/testpypi.yml @@ -1,14 +1,19 @@ 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 + steps: # Checkout the repository - name: Check out the repository @@ -22,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: | @@ -34,4 +40,4 @@ jobs: # Publish to TestPyPI - name: Publish to TestPyPI run: | - poetry publish --repository testpypi --build + poetry publish --repository testpypi