Skip to content

Commit ea3a7b5

Browse files
committed
Configuring for toolkit
1 parent c527a38 commit ea3a7b5

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,24 @@ jobs:
3939
- uses: actions/checkout@v4
4040
with:
4141
persist-credentials: false
42-
- name: Set up Python
43-
uses: actions/setup-python@v5
42+
- name: Install uv + caching
43+
uses: astral-sh/setup-uv@v5
4444
with:
45-
python-version: ${{ matrix.config[0] }}
46-
allow-prereleases: true
47-
- name: Pip cache
48-
uses: actions/cache@v4
49-
with:
50-
path: ~/.cache/pip
51-
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
52-
restore-keys: |
53-
${{ runner.os }}-pip-${{ matrix.config[0] }}-
54-
${{ runner.os }}-pip-
55-
- name: Install dependencies
56-
run: |
57-
python -m pip install --upgrade pip
58-
pip install tox
45+
enable-cache: true
46+
cache-dependency-glob: |
47+
setup.*
48+
tox.ini
49+
python-version: ${{ matrix.matrix.config[0] }}
50+
github-token: ${{ secrets.GITHUB_TOKEN }}
5951
- name: Test
6052
if: ${{ !startsWith(runner.os, 'Mac') }}
61-
run: tox -e ${{ matrix.config[1] }}
53+
run: uvx --with tox-uv tox -e ${{ matrix.config[1] }}
6254
- name: Test (macOS)
6355
if: ${{ startsWith(runner.os, 'Mac') }}
64-
run: tox -e ${{ matrix.config[1] }}-universal2
56+
run: uvx --with tox-uv tox -e ${{ matrix.config[1] }}-universal2
6557
- name: Coverage
6658
if: matrix.config[1] == 'coverage'
6759
run: |
68-
pip install coveralls
69-
coveralls --service=github
60+
uvx coveralls --service=github
7061
env:
7162
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.meta.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://github.com/zopefoundation/meta/tree/master/config/toolkit
33
[meta]
44
template = "toolkit"
5-
commit-id = "82ed9fd9"
5+
commit-id = "0ce77409"
66

77
[python]
88
with-sphinx-doctests = false

0 commit comments

Comments
 (0)