11# Generated from:
2- # https://github.com/plone/meta/tree/main /src/plone/meta/default
2+ # https://github.com/plone/meta/tree/2.x /src/plone/meta/default
33# See the inline comments on how to expand/tweak this configuration file
44name : Tests
55
66on :
77 push :
8+ workflow_dispatch :
89
910jobs :
1011 build :
@@ -29,11 +30,15 @@ jobs:
2930 - uses : actions/checkout@v6
3031 with :
3132 persist-credentials : false
32- - name : Set up Python
33- uses : actions /setup-python@v6
33+ - name : Install uv + caching
34+ uses : astral-sh /setup-uv@v8.0.0
3435 with :
36+ enable-cache : true
37+ cache-dependency-glob : |
38+ setup.*
39+ tox.ini
40+ pyproject.toml
3541 python-version : ${{ matrix.config[0] }}
36- allow-prereleases : true
3742
3843# #
3944# Add extra configuration options in .meta.toml:
@@ -42,25 +47,13 @@ jobs:
4247# _your own configuration lines_
4348# """
4449# #
45- - name : Pip cache
46- uses : actions/cache@v5
47- with :
48- path : ~/.cache/pip
49- key : ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
50- restore-keys : |
51- ${{ runner.os }}-pip-${{ matrix.config[0] }}-
52- ${{ runner.os }}-pip-
53- - name : Install dependencies
54- run : |
55- python -m pip install --upgrade pip
56- pip install tox
5750 - name : Initialize tox
5851 # the bash one-liner below does not work on Windows
5952 if : contains(matrix.os, 'ubuntu')
6053 run : |
61- if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi
54+ if [ `uvx tox list --no-desc -f init|wc -l` = 1 ]; then uvx --with tox-uv tox -e init;else true; fi
6255 - name : Test
63- run : tox -e ${{ matrix.config[2] }}
56+ run : uvx --with tox-uv tox -e ${{ matrix.config[2] }}
6457
6558
6659# #
0 commit comments