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:
2025-04-30 12:31:50 +02:00
parent bf727a8541
commit 81459d631f
3 changed files with 1122 additions and 2 deletions

View File

@@ -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
View File

@@ -1,2 +1 @@
*__pycache__* *__pycache__*
poetry.lock

1111
poetry.lock generated Normal file

File diff suppressed because it is too large Load Diff