Skip to content

Commit 29045c3

Browse files
authored
Update test.yml
1 parent 59b2ef7 commit 29045c3

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,16 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: ${{ matrix.python-version }}
2319

2420
- name: Install Poetry
25-
uses: snok/[email protected]
26-
with:
27-
virtualenvs-create: true
28-
virtualenvs-in-project: true
29-
30-
- name: Load cached venv
31-
id: cached-poetry-dependencies
32-
uses: actions/cache@v2
21+
run: pipx install poetry
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
3325
with:
34-
path: .venv
35-
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
26+
python-version: ${{ matrix.python-version }}
27+
cache: "poetry"
28+
cache-dependency-path: poetry.lock
3629

3730
- name: Install library and dependencies
3831
run: poetry install --no-interaction

0 commit comments

Comments
 (0)