mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-11 16:07:44 -06:00
Use poetry version in env, use for cache key
This commit is contained in:
7
.github/workflows/test.yaml
vendored
7
.github/workflows/test.yaml
vendored
@@ -9,6 +9,9 @@ permissions:
|
|||||||
checks: write
|
checks: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
|
env:
|
||||||
|
POETRY_VERSION: 1.8.4
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -25,7 +28,7 @@ jobs:
|
|||||||
- name: Install Poetry
|
- name: Install Poetry
|
||||||
uses: snok/install-poetry@v1
|
uses: snok/install-poetry@v1
|
||||||
with:
|
with:
|
||||||
version: 1.8.4
|
version: ${{ env.POETRY_VERSION }}
|
||||||
virtualenvs-create: true
|
virtualenvs-create: true
|
||||||
virtualenvs-in-project: true
|
virtualenvs-in-project: true
|
||||||
|
|
||||||
@@ -33,8 +36,8 @@ jobs:
|
|||||||
id: cached-pip-wheels
|
id: cached-pip-wheels
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: venv-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
|
|
||||||
path: .venv # While ~/.cache is a fine default, I want to separate this cache from other caches
|
path: .venv # While ~/.cache is a fine default, I want to separate this cache from other caches
|
||||||
|
key: venv-${{ steps.setup-python.outputs.python-version }}-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cd backend && poetry install --no-interaction --no-root
|
run: cd backend && poetry install --no-interaction --no-root
|
||||||
|
|||||||
Reference in New Issue
Block a user