@@ -22,13 +22,26 @@ jobs:
2222 with :
2323 python-version : ${{ env.PYTHON_VERSION }}
2424
25+ - name : Cache Poetry & pip
26+ uses : actions/cache@v4
27+ with :
28+ path : |
29+ ~/.cache/pypoetry
30+ ~/.cache/pip
31+ .venv
32+ key : ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('**/pyproject.toml') }}
33+ restore-keys : |
34+ ${{ runner.os }}-poetry-
35+
2536 - name : Install Poetry
2637 run : |
2738 python -m pip install --upgrade pip
2839 pip install poetry
2940
3041 - name : Install dependencies (poetry)
31- run : poetry install --no-interaction --no-ansi --no-root
42+ run : |
43+ poetry config virtualenvs.in-project true
44+ poetry install --no-interaction --no-ansi --no-root
3245
3346 - name : Run flake8
3447 run : poetry run flake8
@@ -49,13 +62,26 @@ jobs:
4962 with :
5063 python-version : ${{ env.PYTHON_VERSION }}
5164
65+ - name : Cache Poetry & pip
66+ uses : actions/cache@v4
67+ with :
68+ path : |
69+ ~/.cache/pypoetry
70+ ~/.cache/pip
71+ .venv
72+ key : ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('**/pyproject.toml') }}
73+ restore-keys : |
74+ ${{ runner.os }}-poetry-
75+
5276 - name : Install Poetry
5377 run : |
5478 python -m pip install --upgrade pip
5579 pip install poetry
5680
5781 - name : Install dependencies (poetry)
58- run : poetry install --no-interaction --no-ansi --no-root
82+ run : |
83+ poetry config virtualenvs.in-project true
84+ poetry install --no-interaction --no-ansi --no-root
5985
6086 - name : Set PYTHONPATH
6187 run : |
@@ -136,12 +162,25 @@ jobs:
136162 python -m pip install --upgrade pip
137163 pip install poetry
138164
165+ - name : Cache Poetry & pip
166+ uses : actions/cache@v4
167+ with :
168+ path : |
169+ ~/.cache/pypoetry
170+ ~/.cache/pip
171+ .venv
172+ key : ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('**/pyproject.toml') }}
173+ restore-keys : |
174+ ${{ runner.os }}-poetry-
175+
139176 - name : Set PYTHONPATH
140177 run : |
141178 echo "PYTHONPATH=$(pwd)/src:$(pwd)/${PYTHONPATH}" >> $GITHUB_ENV
142179
143180 - name : Install dependencies (poetry)
144- run : poetry install --no-interaction --no-ansi --no-root
181+ run : |
182+ poetry config virtualenvs.in-project true
183+ poetry install --no-interaction --no-ansi --no-root
145184
146185 - name : " Run test"
147186 run : " ./lib/bashunit tests/e2e"
0 commit comments