Skip to content

Commit d9d2edb

Browse files
committed
use reusable workflows
this allow simpler branch protection
1 parent 1dbe50a commit d9d2edb

1 file changed

Lines changed: 15 additions & 48 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 15 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,18 @@ on:
77
pull_request:
88

99
jobs:
10-
main:
11-
strategy:
12-
matrix:
13-
include:
14-
# linux
15-
- os: ubuntu-latest
16-
python: pypy-3.11
17-
toxenv: py
18-
- os: ubuntu-latest
19-
python: '3.10'
20-
toxenv: py
21-
- os: ubuntu-latest
22-
python: '3.11'
23-
toxenv: py
24-
- os: ubuntu-latest
25-
python: '3.12'
26-
toxenv: py
27-
- os: ubuntu-latest
28-
python: '3.13'
29-
toxenv: py
30-
- os: ubuntu-latest
31-
python: '3.14'
32-
toxenv: py
33-
- os: ubuntu-latest
34-
python: '3.15-dev'
35-
toxenv: py
36-
# windows
37-
- os: windows-latest
38-
python: '3.10'
39-
toxenv: py
40-
# misc
41-
- os: ubuntu-latest
42-
python: '3.10'
43-
toxenv: docs
44-
- os: ubuntu-latest
45-
python: '3.10'
46-
toxenv: linters
47-
- os: ubuntu-latest
48-
python: '3.10'
49-
toxenv: dogfood
50-
runs-on: ${{ matrix.os }}
51-
steps:
52-
- uses: actions/checkout@v4
53-
- uses: actions/setup-python@v5
54-
with:
55-
python-version: ${{ matrix.python }}
56-
- run: python -mpip install --upgrade setuptools pip tox virtualenv
57-
- run: tox -e ${{ matrix.toxenv }}
10+
main-windows:
11+
uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1
12+
with:
13+
env: '["py310"]'
14+
os: windows-latest
15+
main-linux:
16+
uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1
17+
with:
18+
env: '["pypy3", "py310", "py311", "py312", "py313", "py314", "py315"]'
19+
os: ubuntu-latest
20+
main-other:
21+
uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1
22+
with:
23+
env: '["docs", "linters", "dogfood"]'
24+
os: ubuntu-latest

0 commit comments

Comments
 (0)