feat(workflows): add cache restore step to build process
- Introduces caching for Poetry and pip to improve CI efficiency - Updates .gitignore to track poetry.lock for consistency Signed-off-by: Max P. <Mail@MPassarello.de>
This commit is contained in:
10
.github/workflows/build-and-deploy.yml
vendored
10
.github/workflows/build-and-deploy.yml
vendored
@@ -19,6 +19,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
|
|
||||||
|
- name: 🔄 Restore cache
|
||||||
|
uses: https://git.0xmax42.io/actions/cache@v2
|
||||||
|
with:
|
||||||
|
keys: |
|
||||||
|
poetry-v1-${{ runner.os }}-${{ hashFiles('poetry.lock') }}
|
||||||
|
poetry-v1-${{ runner.os }}
|
||||||
|
paths: |
|
||||||
|
~/.cache/pypoetry
|
||||||
|
~/.cache/pip
|
||||||
|
|
||||||
- name: Install Poetry
|
- name: Install Poetry
|
||||||
run: |
|
run: |
|
||||||
pip install poetry
|
pip install poetry
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1 @@
|
|||||||
*__pycache__*
|
*__pycache__*
|
||||||
poetry.lock
|
|
1111
poetry.lock
generated
Normal file
1111
poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user