mirror of
https://gitea.com/actions/setup-python.git
synced 2024-11-21 17:49:35 +01:00
added action/cache
This commit is contained in:
parent
5c56ece473
commit
de8a801a25
1 changed files with 7 additions and 1 deletions
|
@ -313,9 +313,15 @@ steps:
|
|||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.9'
|
||||
cache: 'poetry'
|
||||
- name: Install poetry
|
||||
run: python -m pip install poetry
|
||||
- name: Cache Poetry dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/pypoetry
|
||||
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-poetry-
|
||||
- run: poetry install
|
||||
- run: poetry run pytest
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue