Skip to content

Commit 0092ea0

Browse files
authored
Move to uv (#40)
Per title ### Test Plan - ensure GHA runs
1 parent 1ce81a3 commit 0092ea0

File tree

2 files changed

+7
-44
lines changed

2 files changed

+7
-44
lines changed

.github/workflows/test-suite.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,51 +16,26 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- uses: actions/setup-python@v5
20-
with:
21-
python-version: "3.12"
22-
23-
- name: Install dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install tox
19+
- uses: astral-sh/setup-uv@v3
2720

2821
- name: Lint with tox
29-
run: tox -e lint
22+
run: uvx tox -e lint
3023

3124
test:
32-
name: "Python Test ${{matrix.python-version}} ${{ matrix.os }}"
25+
name: "Python Test ${{ matrix.os }}"
3326
needs: [lint]
3427
runs-on: "${{ matrix.os }}"
3528
strategy:
3629
fail-fast: false # allow tests to run on all platforms
3730
matrix:
38-
python-version:
39-
- "pypy-3.8"
40-
- "pypy-3.9"
41-
- "pypy-3.10"
42-
- "3.8"
43-
- "3.9"
44-
- "3.10"
45-
- "3.11"
46-
- "3.12"
47-
- "3.13"
4831
os:
4932
- ubuntu-latest
5033
- windows-latest
5134
- macos-latest
5235

5336
steps:
5437
- uses: actions/checkout@v4
55-
56-
- uses: actions/setup-python@v5
57-
with:
58-
python-version: ${{ matrix.python-version }}
59-
60-
- name: Install dependencies
61-
run: |
62-
python -m pip install --upgrade pip
63-
pip install tox tox-gh-actions
38+
- uses: astral-sh/setup-uv@v3
6439

6540
- name: Test with tox
66-
run: tox
41+
run: uvx tox

tox.ini

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
[tox]
2-
requires = tox>=3
3-
envlist = lint, type, pypy{38,39,310}, py{38,39,310,311,312,313}
4-
5-
[gh-actions]
6-
python =
7-
pypy-3.8: pypy38
8-
pypy-3.9: pypy39
9-
pypy-3.10: pypy310
10-
3.8: py38
11-
3.9: py39
12-
3.10: py310
13-
3.11: py311
14-
3.12: py312
15-
3.13: py313
2+
requires = tox>=3,tox-uv
3+
envlist = py{38,39,310,311,312,313}, pypy{38,39,310}
164

175
[testenv]
186
description = run unit tests

0 commit comments

Comments
 (0)