|
|
|
@ -21,22 +21,14 @@ runs:
|
|
|
|
|
- name: Install and configure Poetry
|
|
|
|
|
uses: snok/install-poetry@v1
|
|
|
|
|
with:
|
|
|
|
|
virtualenvs-create: true
|
|
|
|
|
virtualenvs-in-project: true
|
|
|
|
|
installer-parallel: true
|
|
|
|
|
- name: Load cached venv
|
|
|
|
|
id: cached-poetry-dependencies
|
|
|
|
|
uses: actions/cache@v3
|
|
|
|
|
- name: Cache Poetry cache
|
|
|
|
|
uses: actions/cache@v4
|
|
|
|
|
with:
|
|
|
|
|
path: .venv
|
|
|
|
|
key: venv-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
# Dependencies appear to be dissapearing
|
|
|
|
|
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
|
|
|
|
|
run: poetry install --no-interaction --no-root
|
|
|
|
|
shell: bash
|
|
|
|
|
- name: Activate venv
|
|
|
|
|
run: |
|
|
|
|
|
source .venv/bin/activate
|
|
|
|
|
echo PATH=$PATH >> $GITHUB_ENV
|
|
|
|
|
shell: bash
|
|
|
|
|
path: ~/.cache/pypoetry
|
|
|
|
|
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.POETRY_VERSION }}
|
|
|
|
|
- name: Cache Packages
|
|
|
|
|
uses: actions/cache@v4
|
|
|
|
|
with:
|
|
|
|
|
path: ~/.local
|
|
|
|
|
key: poetry-local-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/*.yml') }}
|
|
|
|
|