Skip to content

Commit da8dc73

Browse files
committed
test tox-gh
Signed-off-by: emdneto <[email protected]>
1 parent a94eab9 commit da8dc73

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/test_tox.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test 0
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'release/*'
7+
pull_request:
8+
9+
env:
10+
CORE_REPO_SHA: main
11+
CONTRIB_REPO_SHA: main
12+
PIP_EXISTS_ACTION: w
13+
14+
jobs:
15+
test:
16+
name: ${{ matrix.python-version }}-${{ matrix.os }}
17+
runs-on: ${{ matrix.os }}
18+
env:
19+
py38: "3.8"
20+
py39: "3.9"
21+
py310: "3.10"
22+
py311: "3.11"
23+
py312: "3.12"
24+
pypy3: pypy-3.8
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
python-version: [py38, py39, py310, py311, py312, pypy3]
29+
os: [ubuntu-latest, windows-latest]
30+
steps:
31+
- name: Checkout repo @ SHA - ${{ github.sha }}
32+
uses: actions/checkout@v4
33+
- name: Set up Python ${{ env[matrix.python-version] }}
34+
uses: actions/setup-python@v5
35+
with:
36+
python-version: ${{ env[matrix.python-version] }}
37+
architecture: 'x64'
38+
- name: Install tox
39+
run: pip install tox tox-uv tox-gh
40+
- name: Run tests
41+
run: tox run --skip-pkg-install
42+
env:
43+
TOX_GH_MAJOR_MINOR: ${{ env[matrix.python-version] }}

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,3 +364,12 @@ deps =
364364
pre-commit
365365
commands =
366366
pre-commit run --color=always --all-files {posargs}
367+
368+
[gh]
369+
python =
370+
3.12 = py312-test
371+
3.11 = py311-test
372+
3.10 = py310-test
373+
3.9 = py39-test
374+
3.8 = py38-test
375+
pypy3 = pypy3-test

0 commit comments

Comments
 (0)