Skip to content

Commit

Permalink
IP: Try install Poetry after Setup Python
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfstr committed Jul 14, 2024
1 parent d71beeb commit a25e4da
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/push-github-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry

- name: Install Poetry
# NOTE: Pinning pip and setuptools avoids error: Backend 'setuptools.build_meta:__legacy__' is not available
# https://github.com/pypa/pip/issues/6264
Expand All @@ -135,12 +141,6 @@ jobs:
python -m pip install "pip>=19,<20" "setuptools>=40.8.0"
pipx install "poetry>=1.4.0,<1.5.0" --pip-args "pip>=19,<20" --pip-args "setuptools>=40.8.0"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry

- name: Install dependencies with Poetry
# If build takes a very long time, then it's likely that the version
# of wxPython installed does not offer a precompiled wheel for this
Expand Down Expand Up @@ -245,19 +245,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry

- name: Install Poetry
# NOTE: Pinning pip and setuptools avoids error: Backend 'setuptools.build_meta:__legacy__' is not available
# https://github.com/pypa/pip/issues/6264
run: |
python -m pip install "pip>=19,<20" "setuptools>=40.8.0"
pipx install "poetry>=1.4.0,<1.5.0" --pip-args "pip>=19,<20" --pip-args "setuptools>=40.8.0"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry

- name: Update APT packages
run: sudo apt-get update

Expand Down Expand Up @@ -347,19 +347,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry

- name: Install Poetry
# NOTE: Pinning pip and setuptools avoids error: Backend 'setuptools.build_meta:__legacy__' is not available
# https://github.com/pypa/pip/issues/6264
run: |
python -m pip install "pip>=19,<20" "setuptools>=40.8.0"
pipx install "poetry>=1.4.0,<1.5.0" --pip-args "pip>=19,<20" --pip-args "setuptools>=40.8.0"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry

- name: Install dependencies with Poetry
# If build takes a very long time, then it's likely that the version
# of wxPython installed does not offer a precompiled wheel for this
Expand Down

0 comments on commit a25e4da

Please sign in to comment.