3131 uses : actions/cache@v3
3232 with :
3333 path : ~/.cache/pypoetry
34- key : poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs .python-version }}-${{ env.POETRY_VERSION }}
34+ key : poetry-cache-${{ runner.os }}-${{ matrix .python-version }}-${{ env.POETRY_VERSION }}
3535
3636 - name : Install Poetry
3737 uses : snok/install-poetry@v1
6363 uses : actions/cache@v3
6464 with :
6565 path : ~/.cache/pypoetry
66- key : poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs .python-version }}-${{ env.POETRY_VERSION }}-${{ matrix.pydantic-version }}
66+ key : poetry-cache-${{ runner.os }}-${{ matrix .python-version }}-${{ env.POETRY_VERSION }}-${{ matrix.pydantic-version }}
6767
6868 - name : Install Poetry
6969 uses : snok/install-poetry@v1
9696 make type-pydantic-v1-openai-v1
9797
9898 Pytests :
99- runs-on : ubuntu-latest
99+ runs-on : LargeBois
100100 strategy :
101101 matrix :
102102 python-version : ["3.8", "3.9", "3.10", "3.11"]
@@ -116,7 +116,7 @@ jobs:
116116 uses : actions/cache@v3
117117 with :
118118 path : ~/.cache/pypoetry
119- key : poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs .python-version }}-${{ env.POETRY_VERSION }}-${{ matrix.pydantic-version }}-${{ matrix.openai-version }}
119+ key : poetry-cache-${{ runner.os }}-${{ matrix .python-version }}-${{ env.POETRY_VERSION }}-${{ matrix.pydantic-version }}-${{ matrix.openai-version }}
120120
121121 - name : Install Poetry
122122 uses : snok/install-poetry@v1
@@ -159,17 +159,17 @@ jobs:
159159 uses : actions/setup-python@v4
160160 with :
161161 python-version : 3.11.x
162+ - name : Poetry cache
163+ uses : actions/cache@v3
164+ with :
165+ path : ~/.cache/pypoetry
166+ key : poetry-cache-${{ runner.os }}-3.11.x-${{ env.POETRY_VERSION }}
162167 - name : Install Poetry
163168 uses : snok/install-poetry@v1
164169 with :
165170 virtualenvs-create : true
166171 virtualenvs-in-project : true
167172 installer-parallel : true
168- - name : Load cached venv
169- uses : actions/cache@v3
170- with :
171- path : .venv
172- key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
173173 - name : Install dependencies
174174 run : |
175175 make full;
0 commit comments