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"
|
python-version: "3.13.1"
|
||||||
cache: "pip"
|
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
|
- name: Install and configure Poetry
|
||||||
|
if: steps.cached-poetry.outputs.cache-hit != 'true'
|
||||||
uses: snok/install-poetry@v1
|
uses: snok/install-poetry@v1
|
||||||
with:
|
with:
|
||||||
virtualenvs-create: false
|
virtualenvs-create: false
|
||||||
@@ -32,7 +40,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Verify that poetry.lock is consistent with pyproject.toml
|
- name: Verify that poetry.lock is consistent with pyproject.toml
|
||||||
run: |
|
run: |
|
||||||
poetry lock --check
|
poetry check --lock
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user