Skip to content

Commit

Permalink
Github Actions: fix poetry before running it
Browse files Browse the repository at this point in the history
Workaround for poetry's inability to find a proper python version.
python-poetry/poetry#721
  • Loading branch information
Emerentius committed Aug 30, 2020
1 parent a3413ec commit 3d921e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
uses: dschep/install-poetry-action@v1.3
with:
version: "1.0.10"
# fix poetry to use python3
# poetry's python detection has been broken by design for years.
# It's unlikely that this will be fixed anytime soon.
# see https://github.com/python-poetry/poetry/issues/721
# and related issues.
- name: fix poetry
run: sed --in-place 's;^#!/usr/bin/env python$;#!/usr/bin/env python3;' $(which poetry)
- name: check pip version
run: python3 -m pip --version
- name: update pip version
Expand Down

0 comments on commit 3d921e9

Please sign in to comment.