Skip to content

Commit

Permalink
build: Install Poetry with pipx
Browse files Browse the repository at this point in the history
As [recommended by the documentation](https://python-poetry.org/docs/#ci-recommendations) and
[@xylar](conda-forge/poetry-feedstock#101 (comment)).
This should avoid the "No such file or directory:
'/usr/local/miniconda/envs/test/lib/python3.[…]/site-packages/[…].dist-info'"
errors which probably comes from the interaction between Conda and Poetry.
  • Loading branch information
l0b0 committed May 16, 2024
1 parent 910f5d2 commit d58c5ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,13 @@ jobs:
channels: conda-forge
python-version: ${{ matrix.python }}

- name: Install Conda environment packages
- name: Install GDAL
run:
conda install --channel=conda-forge --quiet --yes gdal=${{
env.GDAL_VERSION }} poetry=1.7.1
env.GDAL_VERSION }}

- name: Install Poetry
run: pipx install poetry==1.7.1

- name: Install Python packages on non-Windows runner
run: poetry install --only=main --no-root
Expand Down

0 comments on commit d58c5ea

Please sign in to comment.