3333 - uses : actions/checkout@v4
3434
3535 - name : Set up Python ${{ matrix.python-version }}
36- uses : actions/setup-python@v4
36+ uses : actions/setup-python@v5
3737 with :
3838 python-version : ${{ matrix.python-version }}
3939 allow-prereleases : true
4444 echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
4545
4646 - name : Cache
47- uses : actions/cache@v3
47+ uses : actions/cache@v4
4848 with :
4949 path : ${{ steps.pip-cache.outputs.dir }}
5050 key :
6767 DB_PORT : 3306
6868
6969 - name : Upload coverage data
70- uses : actions/upload-artifact@v3
70+ uses : actions/upload-artifact@v4
7171 with :
72- name : coverage-data
72+ name : coverage-data-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.arch }}-mysql
7373 path : " .coverage.*"
7474
7575 postgres :
@@ -108,7 +108,7 @@ jobs:
108108 - uses : actions/checkout@v4
109109
110110 - name : Set up Python ${{ matrix.python-version }}
111- uses : actions/setup-python@v4
111+ uses : actions/setup-python@v5
112112 with :
113113 python-version : ${{ matrix.python-version }}
114114 allow-prereleases : true
@@ -119,7 +119,7 @@ jobs:
119119 echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
120120
121121 - name : Cache
122- uses : actions/cache@v3
122+ uses : actions/cache@v4
123123 with :
124124 path : ${{ steps.pip-cache.outputs.dir }}
125125 key :
@@ -145,9 +145,9 @@ jobs:
145145 DB_PORT : 5432
146146
147147 - name : Upload coverage data
148- uses : actions/upload-artifact@v3
148+ uses : actions/upload-artifact@v4
149149 with :
150- name : coverage-data
150+ name : coverage-data-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.database }}
151151 path : " .coverage.*"
152152
153153 sqlite :
@@ -162,7 +162,7 @@ jobs:
162162 - uses : actions/checkout@v4
163163
164164 - name : Set up Python ${{ matrix.python-version }}
165- uses : actions/setup-python@v4
165+ uses : actions/setup-python@v5
166166 with :
167167 python-version : ${{ matrix.python-version }}
168168 allow-prereleases : true
@@ -173,7 +173,7 @@ jobs:
173173 echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
174174
175175 - name : Cache
176- uses : actions/cache@v3
176+ uses : actions/cache@v4
177177 with :
178178 path : ${{ steps.pip-cache.outputs.dir }}
179179 key :
@@ -193,9 +193,9 @@ jobs:
193193 DB_NAME : " :memory:"
194194
195195 - name : Upload coverage data
196- uses : actions/upload-artifact@v3
196+ uses : actions/upload-artifact@v4
197197 with :
198- name : coverage-data
198+ name : coverage-data-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.arch }}-sqlite
199199 path : " .coverage.*"
200200
201201 coverage :
@@ -204,17 +204,18 @@ jobs:
204204 needs : [sqlite, mysql, postgres]
205205 steps :
206206 - uses : actions/checkout@v4
207- - uses : actions/setup-python@v4
207+ - uses : actions/setup-python@v5
208208 with :
209209 # Use latest, so it understands all syntax.
210210 python-version : " 3.11"
211211
212212 - run : python -m pip install --upgrade coverage[toml]
213213
214214 - name : Download coverage data.
215- uses : actions/download-artifact@v3
215+ uses : actions/download-artifact@v4
216216 with :
217- name : coverage-data
217+ pattern : coverage-data-*
218+ merge-multiple : true
218219
219220 - name : Combine coverage & check percentage
220221 run : |
@@ -223,7 +224,7 @@ jobs:
223224 python -m coverage report
224225
225226 - name : Upload HTML report if check failed.
226- uses : actions/upload-artifact@v3
227+ uses : actions/upload-artifact@v4
227228 with :
228229 name : html-report
229230 path : htmlcov
@@ -238,7 +239,7 @@ jobs:
238239 - uses : actions/checkout@v4
239240
240241 - name : Set up Python ${{ matrix.python-version }}
241- uses : actions/setup-python@v4
242+ uses : actions/setup-python@v5
242243 with :
243244 python-version : 3.8
244245
@@ -248,7 +249,7 @@ jobs:
248249 echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
249250
250251 - name : Cache
251- uses : actions/cache@v3
252+ uses : actions/cache@v4
252253 with :
253254 path : ${{ steps.pip-cache.outputs.dir }}
254255 key :
0 commit comments