Skip to content

Commit 5972161

Browse files
committed
ci: switch test action to pipx too
1 parent 67061ff commit 5972161

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,15 @@ jobs:
2929
python-version: ${{ matrix.python-version }}
3030

3131
# Cache the installation of Poetry itself, e.g. the next step. This prevents the workflow
32-
# from installing Poetry every time, which can be slow. Note the use of the Poetry version
33-
# number in the cache key.
32+
# from installing Poetry every time, which can be slow.
3433
- name: cache poetry install
3534
uses: actions/cache@v4
3635
with:
3736
path: ~/.local
38-
key: poetry-1.8.2
37+
key: ${{ runner.os }}-poetry
3938

40-
# Install Poetry. You could do this manually, or there are several actions that do this.
41-
# `snok/install-poetry` seems to be minimal yet complete, and really just calls out to
42-
# Poetry's default install script, which feels correct. I pin the Poetry version here
43-
# because Poetry does occasionally change APIs between versions and I don't want my
44-
# actions to break if it does.
45-
- uses: snok/install-poetry@v1
46-
with:
47-
version: 1.8.2
39+
- name: Install Poetry
40+
run: pipx install poetry
4841

4942
- name: Cache Poetry packages
5043
id: cache-deps

0 commit comments

Comments
 (0)