Skip to content

Commit 4dd472d

Browse files
committed
chore: upgrade poetry check workflow
1 parent 32ba990 commit 4dd472d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/check.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,24 @@ jobs:
2424
with:
2525
submodules: 'recursive'
2626
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v2
27+
uses: actions/setup-python@v5
2828
with:
2929
python-version: ${{ matrix.python-version }}
30+
3031
- name: Setup poetry
31-
uses: abatilo/actions-poetry@v2.0.0
32+
uses: abatilo/actions-poetry@v4
33+
34+
- name: Setup a local virtual environment
35+
run: |
36+
poetry config virtualenvs.create true --local
37+
poetry config virtualenvs.in-project true --local
38+
39+
- uses: actions/cache@v3
40+
name: Define a cache for the virtual environment based on the dependencies lock file
3241
with:
33-
poetry-version: 1.3.2
42+
path: ./.venv
43+
key: venv-${{ hashFiles('poetry.lock') }}
44+
3445
- name: Install dependencies
3546
run: poetry install -E crypto
3647
- name: Generate rest sync code and tests

0 commit comments

Comments
 (0)