Skip to content

Commit ac85247

Browse files
committed
Install poetry via pipx for better caching
1 parent 0795a7c commit ac85247

File tree

2 files changed

+20
-30
lines changed

2 files changed

+20
-30
lines changed

.github/workflows/check.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,15 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@v3
2626

27+
- name: Set up Poetry
28+
# Need to use version < 1.2.0 in order to support Python 3.6
29+
run: pipx install poetry==1.1.15
30+
2731
- name: Set up Python ${{ matrix.python-version }}
2832
uses: actions/setup-python@v4
2933
with:
3034
python-version: ${{ matrix.python-version }}
31-
cache: pip
32-
cache-dependency-path: poetry.lock
33-
34-
- name: Set up Poetry
35-
uses: abatilo/actions-poetry@v2
36-
with:
37-
# Need to use version < 1.2.0 in order to support Python 3.6
38-
poetry-version: 1.1.15
35+
cache: poetry
3936

4037
- name: Set up dependencies
4138
run: |
@@ -62,18 +59,15 @@ jobs:
6259
- name: Checkout
6360
uses: actions/checkout@v3
6461

62+
- name: Set up Poetry
63+
# Need to use version < 1.2.0 in order to support Python 3.6
64+
run: pipx install poetry==1.1.15
65+
6566
- name: Set up Python ${{ matrix.python-version }}
6667
uses: actions/setup-python@v4
6768
with:
6869
python-version: ${{ matrix.python-version }}
69-
cache: pip
70-
cache-dependency-path: poetry.lock
71-
72-
- name: Set up Poetry
73-
uses: abatilo/actions-poetry@v2
74-
with:
75-
# Need to use version < 1.2.0 in order to support Python 3.6
76-
poetry-version: 1.1.15
70+
cache: poetry
7771

7872
- name: Set up dependencies
7973
run: |
@@ -100,18 +94,15 @@ jobs:
10094
- name: Checkout
10195
uses: actions/checkout@v3
10296

97+
- name: Set up Poetry
98+
# Need to use version < 1.2.0 in order to support Python 3.6
99+
run: pipx install poetry==1.1.15
100+
103101
- name: Set up Python ${{ matrix.python-version }}
104102
uses: actions/setup-python@v4
105103
with:
106104
python-version: ${{ matrix.python-version }}
107-
cache: pip
108-
cache-dependency-path: poetry.lock
109-
110-
- name: Set up Poetry
111-
uses: abatilo/actions-poetry@v2
112-
with:
113-
# Need to use version < 1.2.0 in order to support Python 3.6
114-
poetry-version: 1.1.15
105+
cache: poetry
115106

116107
- name: Set up dependencies
117108
run: |

.github/workflows/publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@ jobs:
1717
# Using v2 or later strips tag annotations https://github.com/actions/checkout/issues/290
1818
- uses: actions/checkout@v1
1919

20+
- name: Set up Poetry
21+
# Need to use version < 1.2.0 in order to support Python 3.6
22+
run: pipx install poetry==1.1.15
23+
2024
- name: Set up Python
2125
uses: actions/setup-python@v4
2226
with:
2327
python-version: '3.7'
24-
25-
- name: Set up Poetry
26-
uses: abatilo/actions-poetry@v2
27-
with:
28-
# Need to use version < 1.2.0 in order to support Python 3.6
29-
poetry-version: 1.1.15
28+
cache: poetry
3029

3130
- name: Build
3231
run: poetry build

0 commit comments

Comments
 (0)