Skip to content

Commit eafc5d4

Browse files
committed
fix ci cache for pydantic versions
1 parent ed3275c commit eafc5d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/cache@v3
6363
with:
6464
path: ~/.cache/pypoetry
65-
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.POETRY_VERSION }}
65+
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.POETRY_VERSION }}-${{ matrix.pydantic-version }}
6666

6767
- name: Install Poetry
6868
uses: snok/install-poetry@v1
@@ -71,6 +71,7 @@ jobs:
7171
# TODO: fix errors so that we can run `make dev` instead
7272
run: |
7373
make full
74+
poetry run pip install pydantic==${{ matrix.pydantic-version }}
7475
7576
- if: matrix.pydantic-version == '2.4.2'
7677
name: Static analysis with pyright (ignoring pydantic v1)
@@ -102,14 +103,13 @@ jobs:
102103
uses: actions/cache@v3
103104
with:
104105
path: ~/.cache/pypoetry
105-
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.POETRY_VERSION }}
106+
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.POETRY_VERSION }}-${{ matrix.pydantic-version }}
106107

107108
- name: Install Poetry
108109
uses: snok/install-poetry@v1
109110

110111
- name: Install Dependencies
111112
run: |
112-
python -m pip install --upgrade pip
113113
make ${{ matrix.dependencies }}
114114
python -m pip install pydantic==${{ matrix.pydantic-version }}
115115

0 commit comments

Comments
 (0)