@@ -22,13 +22,20 @@ jobs:
2222 docs-base : ${{ steps.paths.outputs.docs }}
2323 steps :
2424 - name : Check out repo
25- uses : actions/checkout@v4
25+ uses : actions/checkout@v5
2626 - name : Set up Python
27- uses : actions/setup-python@v5
27+ uses : actions/setup-python@v6
2828 with :
2929 python-version : ' 3.13'
30+ - name : Install dependencies
31+ run : python -m pip install pre-commit
32+ - name : Cache pre-commit environments
33+ uses : actions/cache@v4
34+ with :
35+ path : ~/.cache/pre-commit
36+ key : pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
3037 - name : Run pre-commit hooks
31- uses : pre-commit/action@v3.0.1
38+ run : pre-commit run -a --show-diff-on-failure --color=always
3239 - name : Define artifact paths
3340 id : paths
3441 run : |
@@ -52,10 +59,10 @@ jobs:
5259 sdist : sdist
5360 steps :
5461 - name : Check out repo
55- uses : actions/checkout@v4
62+ uses : actions/checkout@v5
5663 - name : Set up Python ${{ matrix.python-version }}
5764 if : matrix.upstream-python == null
58- uses : actions/setup-python@v5
65+ uses : actions/setup-python@v6
5966 with :
6067 python-version : ${{ matrix.python-version }}
6168 - name : Set up Python ${{ matrix.python-version }} (macOS fallback)
@@ -162,9 +169,9 @@ jobs:
162169 openslide : [zip, wheel]
163170 steps :
164171 - name : Check out repo
165- uses : actions/checkout@v4
172+ uses : actions/checkout@v5
166173 - name : Set up Python ${{ matrix.python-version }}
167- uses : actions/setup-python@v5
174+ uses : actions/setup-python@v6
168175 with :
169176 python-version : ${{ matrix.python-version }}
170177 - name : Install Python tools
@@ -234,7 +241,7 @@ jobs:
234241 git libopenslide0 python3-jinja2 python3-pil python3-pip
235242 pip install pytest
236243 - name : Check out repo
237- uses : actions/checkout@v4
244+ uses : actions/checkout@v5
238245 - name : Install OpenSlide Python
239246 run : python3 setup.py install
240247 - name : Run tests
@@ -248,9 +255,9 @@ jobs:
248255 runs-on : ubuntu-latest
249256 steps :
250257 - name : Check out repo
251- uses : actions/checkout@v4
258+ uses : actions/checkout@v5
252259 - name : Set up Python
253- uses : actions/setup-python@v5
260+ uses : actions/setup-python@v6
254261 with :
255262 python-version : ' 3.13'
256263 - name : Install Python tools
@@ -279,7 +286,7 @@ jobs:
279286 id-token : write
280287 steps :
281288 - name : Download artifacts
282- uses : actions/download-artifact@v4
289+ uses : actions/download-artifact@v5
283290 with :
284291 pattern : " ${{ needs.pre-commit.outputs.dist-base }}-*"
285292 merge-multiple : true
0 commit comments