Skip to content

Commit 39e8862

Browse files
Use tox-gh to run multiple sessions
1 parent ef58c22 commit 39e8862

File tree

2 files changed

+12
-36
lines changed

2 files changed

+12
-36
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
uses: astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1 # v6.5.0
5353

5454
- name: Run tests
55-
run: uvx --with tox-uv tox -e ${{ matrix.python-version }}
55+
run: uvx --with tox-gh --with tox-uv tox -e ${{ matrix.python-version }}
5656

5757
- name: Upload coverage data
5858
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
@@ -61,40 +61,6 @@ jobs:
6161
name: coverage-data-${{ matrix.os }}-py${{ matrix.python-version }}
6262
path: ".coverage.*"
6363

64-
lint:
65-
name: Lint
66-
runs-on: ubuntu-latest
67-
needs: test
68-
steps:
69-
- name: Checkout code
70-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
71-
72-
- name: Set up Python
73-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
74-
75-
- name: Install uv
76-
uses: astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1 # v6.5.0
77-
78-
- name: Run lint
79-
run: uvx --with tox-uv tox -e lint
80-
81-
typing:
82-
name: Type checks
83-
runs-on: ubuntu-latest
84-
needs: test
85-
steps:
86-
- name: Checkout code
87-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
88-
89-
- name: Set up Python
90-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
91-
92-
- name: Install uv
93-
uses: astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1 # v6.5.0
94-
95-
- name: Run type checks
96-
run: uvx --with tox-uv tox -e typing
97-
9864
coverage:
9965
name: Coverage
10066
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ include = ["backoff"]
6767

6868
[tool.tox]
6969
min_version = "4.22"
70-
requires = [ "tox", "tox-uv" ]
70+
requires = [ "tox", "tox-gh", "tox-uv" ]
7171
env_list = [
7272
"format",
7373
"3.7",
@@ -136,6 +136,16 @@ commands = [
136136
],
137137
]
138138

139+
[tool.tox.gh.python]
140+
"3.14" = ["3.14", "lint", "typing"]
141+
"3.13" = ["3.13"]
142+
"3.12" = ["3.12"]
143+
"3.11" = ["3.11"]
144+
"3.10" = ["3.10"]
145+
"3.9" = ["3.9"]
146+
"3.8" = ["3.8"]
147+
"3.7" = ["3.7"]
148+
139149
[tool.pytest.ini_options]
140150
filterwarnings = [
141151
"error",

0 commit comments

Comments
 (0)