diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 262921b..f4cd54d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -1,4 +1,9 @@ name: cd +permissions: + contents: "write" + id-token: "write" + packages: "write" + pull-requests: "read" on: push: @@ -16,15 +21,15 @@ jobs: with: python-version: '3.10.x' - name: Install Poetry - uses: abatilo/actions-poetry@v2.2.0 + uses: abatilo/actions-poetry@v2.3.0 with: - poetry-version: '1.3.2' + poetry-version: '1.4.2' - name: Install dependencies run: poetry install - - name: Build wheel - run: poetry build -f wheel + - name: Build project + run: poetry build - name: Upload wheel - uses: actions/upload-artifact@v2.2.4 + uses: actions/upload-artifact@v3 with: name: Python Wheel path: "dist/*.whl" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e07377a..24ee3c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,9 +29,9 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Install poetry - uses: abatilo/actions-poetry@v2.2.0 + uses: abatilo/actions-poetry@v2.3.0 with: - poetry-version: 1.3.2 + poetry-version: 1.4.2 - name: Install project run: poetry install --no-dev - name: Build project