Skip to content

Commit 54462c7

Browse files
committed
fix(ci): install poetry properly
1 parent 2723e75 commit 54462c7

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

.github/workflows/pypi.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,25 @@ jobs:
1010
deploy:
1111
strategy:
1212
matrix:
13-
os: [windows-latest]
13+
os: [ubuntu-latest]
1414
python: ["3.x"]
1515
poetry: ["1.5.1"]
1616
runs-on: ${{ matrix.os }}
1717
timeout-minutes: 10
1818

1919
steps:
20-
- uses: actions/checkout@v2
21-
- uses: actions/setup-python@v2
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Install poetry
24+
run: pipx install poetry==${{ matrix.poetry }}
25+
26+
- name: Setup Python
27+
uses: actions/setup-python@v4
2228
with:
2329
python-version: ${{ matrix.python }}
2430
cache: "poetry"
2531

26-
- name: Install poetry
27-
run: |
28-
python -m pip install --upgrade pip poetry==${{ matrix.poetry }}
29-
poetry config virtualenvs.in-project true
30-
3132
- name: Install dependencies
3233
run: |
3334
poetry install

.github/workflows/python-ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@ jobs:
2222
timeout-minutes: 10
2323

2424
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-python@v2
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
28+
- name: Install poetry
29+
run: pipx install poetry==${{ matrix.poetry }}
30+
31+
- name: Setup Python
32+
uses: actions/setup-python@v4
2733
with:
2834
python-version: ${{ matrix.python }}
2935
cache: "poetry"
3036

31-
- name: Install poetry
32-
run: |
33-
python -m pip install --upgrade pip poetry==${{ matrix.poetry }}
34-
poetry config virtualenvs.in-project true
35-
3637
- name: Install dependencies
3738
run: |
3839
poetry install

0 commit comments

Comments
 (0)