ci: cache poetry installation
Some checks failed
Build Python Package / build (push) Failing after 1m19s
Some checks failed
Build Python Package / build (push) Failing after 1m19s
This commit is contained in:
@@ -20,7 +20,15 @@ jobs:
|
||||
python-version: "3.13.1"
|
||||
cache: "pip"
|
||||
|
||||
- name: Load cached Poetry installation
|
||||
id: cached-poetry
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.local
|
||||
key: poetry-0 # increment to reset cache
|
||||
|
||||
- name: Install and configure Poetry
|
||||
if: steps.cached-poetry.outputs.cache-hit != 'true'
|
||||
uses: snok/install-poetry@v1
|
||||
with:
|
||||
virtualenvs-create: false
|
||||
@@ -32,7 +40,7 @@ jobs:
|
||||
|
||||
- name: Verify that poetry.lock is consistent with pyproject.toml
|
||||
run: |
|
||||
poetry lock --check
|
||||
poetry check --lock
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user