feat(ci): cache dependencies
This commit is contained in:
parent
5bebb80e44
commit
8ccd60219f
@ -32,11 +32,23 @@ jobs:
|
|||||||
python-version: "${{ vars.PYTHON_VERSION }}"
|
python-version: "${{ vars.PYTHON_VERSION }}"
|
||||||
|
|
||||||
- name: Setup Poetry
|
- 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
|
- name: Update PATH
|
||||||
run: export PATH="/root/.local/bin:$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
|
- name: Install dependencies
|
||||||
run: /root/.local/bin/poetry install
|
run: /root/.local/bin/poetry install
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user