From 7469753198276d432f8d2618d7fd77e9ab647365 Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Sat, 2 Mar 2024 12:06:38 +0100 Subject: [PATCH] Fix publish workflow --- .github/workflows/publish.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 74586aa..80a5601 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -13,10 +13,13 @@ jobs: uses: actions/setup-python@v1 with: python-version: 3.11 - - name: Install dependencies + # use poetry and cache installed packages, see https://github.com/marketplace/actions/python-poetry-action + - name: Install poetry + uses: abatilo/actions-poetry@v2 + - name: Setup a local virtual environment (if no poetry.toml file) run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine + poetry config virtualenvs.create true --local + poetry config virtualenvs.in-project true --local - name: Build and publish env: PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}