diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a01e41..705ffc4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,8 +39,6 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Python Poetry Action - uses: abatilo/actions-poetry@v2.1.0 - name: generate cache key PY run: echo "PY=$((python -VV; pip freeze; poetry --version) | sha256sum | cut -d' ' @@ -54,9 +52,7 @@ jobs: key: >- cache ${{ secrets.CACHE_DATE }} ${{ env.PY }} ${{ runner.os }} ${{ hashFiles('pyproject.toml') }} ${{ hashFiles('poetry.lock') }} - # HACK python-poetry/poetry#3010 and 3336 workaround for GitHub actions - # and poetry 1.1.2 throwing 'Incorrectly nested style tag found.' - - run: poetry config experimental.new-installer false + - run: pipx install poetry - run: poetry install # Let tests issue git commits - run: git config --global user.name CI diff --git a/pyproject.toml b/pyproject.toml index 8d017ef..db05d17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,5 +15,5 @@ pre-commit = "^2.15.0" pytest-xdist = "^2.4.0" [build-system] -requires = ["poetry>=0.12"] -build-backend = "poetry.masonry.api" +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api"