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:
|
||||
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
|
||||
run: |
|
||||
pip install poetry
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1 @@
|
||||
*__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