feat(ci): cache dependencies

This commit is contained in:
Luke Tainton 2025-01-01 01:16:43 +00:00
parent 5bebb80e44
commit 8ccd60219f
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -32,11 +32,23 @@ jobs:
python-version: "${{ vars.PYTHON_VERSION }}"
- name: Setup Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
uses: abatilo/actions-poetry@v3
# run: curl -sSL https://install.python-poetry.org | python3 -
- name: Update PATH
run: export PATH="/root/.local/bin:$PATH"
- name: Setup virtual environment
run: |
/root/.local/bin/poetry config virtualenvs.create true --local
/root/.local/bin/poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define cache for dependencies
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: /root/.local/bin/poetry install