Skip to content

Commit 6bd7864

Browse files
committed
switch to pipx from snok
1 parent 5a25b25 commit 6bd7864

File tree

2 files changed

+50
-29
lines changed

2 files changed

+50
-29
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ jobs:
3636
python-version: ${{ matrix.python-version }}
3737

3838
- name: Install Poetry
39-
uses: snok/install-poetry@v1
40-
with:
41-
virtualenvs-create: true
42-
virtualenvs-in-project: true
39+
run: |
40+
pip install pipx
41+
pipx ensurepath
42+
pipx install poetry
43+
poetry config --local virtualenvs.create true
44+
poetry config --local virtualenvs.in-project true
45+
poetry env use python
4346
- name: Install Dependencies
4447
run: |
4548
poetry config virtualenvs.in-project true

.github/workflows/test.yml

Lines changed: 43 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ jobs:
9292
python-version: ${{ matrix.python-version }}
9393

9494
- name: Install Poetry
95-
uses: snok/install-poetry@v1
96-
with:
97-
virtualenvs-create: true
98-
virtualenvs-in-project: true
95+
run: |
96+
pip install pipx
97+
pipx ensurepath
98+
pipx install poetry
99+
poetry config --local virtualenvs.create true
100+
poetry config --local virtualenvs.in-project true
101+
poetry env use python
99102
- name: Install Emacs
100103
if: ${{ github.event.inputs.debug == 'on' }}
101104
run: |
@@ -181,10 +184,13 @@ jobs:
181184
python-version: ${{ matrix.python-version }}
182185

183186
- name: Install Poetry
184-
uses: snok/install-poetry@v1
185-
with:
186-
virtualenvs-create: true
187-
virtualenvs-in-project: true
187+
run: |
188+
pip install pipx
189+
pipx ensurepath
190+
pipx install poetry
191+
poetry config --local virtualenvs.create true
192+
poetry config --local virtualenvs.in-project true
193+
poetry env use python
188194
- name: Install Emacs
189195
if: ${{ github.event.inputs.debug == 'on' }}
190196
run: |
@@ -273,10 +279,13 @@ jobs:
273279
python-version: ${{ matrix.python-version }}
274280

275281
- name: Install Poetry
276-
uses: snok/install-poetry@v1
277-
with:
278-
virtualenvs-create: true
279-
virtualenvs-in-project: true
282+
run: |
283+
pip install pipx
284+
pipx ensurepath
285+
pipx install poetry
286+
poetry config --local virtualenvs.create true
287+
poetry config --local virtualenvs.in-project true
288+
poetry env use python
280289
- name: Install Emacs
281290
if: ${{ github.event.inputs.debug == 'on' }}
282291
run: |
@@ -375,10 +384,13 @@ jobs:
375384
python-version: ${{ matrix.python-version }}
376385

377386
- name: Install Poetry
378-
uses: snok/install-poetry@v1
379-
with:
380-
virtualenvs-create: true
381-
virtualenvs-in-project: true
387+
run: |
388+
pip install pipx
389+
pipx ensurepath
390+
pipx install poetry
391+
poetry config --local virtualenvs.create true
392+
poetry config --local virtualenvs.in-project true
393+
poetry env use python
382394
- name: Install Emacs
383395
if: ${{ github.event.inputs.debug == 'on' }}
384396
run: |
@@ -478,10 +490,13 @@ jobs:
478490
echo "IGNORE_ORA_01843=True" >> $GITHUB_ENV
479491
echo "IGNORE_ORA_00932=True" >> $GITHUB_ENV
480492
- name: Install Poetry
481-
uses: snok/install-poetry@v1
482-
with:
483-
virtualenvs-create: true
484-
virtualenvs-in-project: true
493+
run: |
494+
pip install pipx
495+
pipx ensurepath
496+
pipx install poetry
497+
poetry config --local virtualenvs.create true
498+
poetry config --local virtualenvs.in-project true
499+
poetry env use python
485500
- name: Install Emacs
486501
if: ${{ github.event.inputs.debug == 'on' }}
487502
run: |
@@ -538,12 +553,15 @@ jobs:
538553
- uses: actions/setup-python@v5
539554
with:
540555
python-version: '3.12'
541-
556+
542557
- name: Install Poetry
543-
uses: snok/install-poetry@v1
544-
with:
545-
virtualenvs-create: true
546-
virtualenvs-in-project: true
558+
run: |
559+
pip install pipx
560+
pipx ensurepath
561+
pipx install poetry
562+
poetry config --local virtualenvs.create true
563+
poetry config --local virtualenvs.in-project true
564+
poetry env use python
547565
548566
- name: Install Release Dependencies
549567
run: |

0 commit comments

Comments
 (0)