Skip to content

Commit

Permalink
build: Use latest Poetry
Browse files Browse the repository at this point in the history
1.5.0 has fixed <python-poetry/poetry#7589>.
  • Loading branch information
l0b0 committed Jun 19, 2023
1 parent 02c9d45 commit 7e03a10
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,25 +147,12 @@ jobs:
python-version: ${{ matrix.python }}

- name: Install Conda environment packages
run: conda install --channel=conda-forge --quiet --yes gdal=${{
env.GDAL_VERSION }} poetry=1.3.2 # Workaround for https://github.com/python-poetry/poetry/issues/7589
run:
conda install --channel=conda-forge --quiet --yes gdal=${{
env.GDAL_VERSION }} poetry

- name: Install Python packages on non-Windows runner
- name: Install Python packages
run: poetry install --only=main --no-root
if: ${{ !startsWith(runner.os, 'Windows') }}

- name:
Install Python packages on Windows runner (Workaround for
https://github.com/python-poetry/poetry/issues/1031)
uses: nick-fields/retry@v2.8.3
with:
timeout_minutes: 9999 # Workaround for https://github.com/nick-fields/retry/issues/107
max_attempts: 6
command: bash --login -o errexit -c 'cd flooding/sentinel${{
matrix.sentinel }}_water_extraction && poetry install --only=main
--no-root' # Workaround for https://github.com/python-poetry/poetry/issues/7363 / https://github.com/nick-fields/retry/issues/89
shell: bash
if: ${{ startsWith(runner.os, 'Windows') }}

- name: Run test
run:
Expand Down

0 comments on commit 7e03a10

Please sign in to comment.