diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 27c8ee57..844b6560 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -22,13 +22,16 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.12" + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + python-version: ${{ matrix.python }} + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install setuptools wheel - - name: Build package - run: | - python setup.py sdist bdist_wheel # Could also be python -m build + poetry build - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: