|
1 | 1 | name: Build |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - master |
7 | | - pull_request: |
8 | | - branches: |
9 | | - - master |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - master |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - test: |
13 | | - name: '${{ matrix.os }}: ${{ matrix.tox-env }}' |
14 | | - runs-on: ${{ matrix.os }} |
15 | | - strategy: |
16 | | - matrix: |
17 | | - tox-env: [py27-test, py35-test, py36-test, |
18 | | - py37-test, py38-test, pypy-test] |
19 | | - os: [ubuntu-latest, windows-latest] |
| 12 | + test: |
| 13 | + name: '${{ matrix.os }}: ${{ matrix.python-version }}' |
| 14 | + runs-on: ${{ matrix.os }} |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev'] |
| 18 | + os: [ubuntu-latest, windows-latest] |
20 | 19 |
|
21 | | - # Only test on a couple of versions on Windows. |
22 | | - exclude: |
23 | | - - os: windows-latest |
24 | | - tox-env: py35-test |
25 | | - - os: windows-latest |
26 | | - tox-env: py36-test |
27 | | - - os: windows-latest |
28 | | - tox-env: py37-test |
29 | | - - os: windows-latest |
30 | | - tox-env: pypy-test |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v3 |
| 22 | + - name: Set up Python ${{ matrix.python-version }} |
| 23 | + uses: actions/setup-python@v4 |
| 24 | + with: |
| 25 | + python-version: ${{ matrix.python-version }} |
| 26 | + - name: Install Tox |
| 27 | + run: pip install tox |
| 28 | + - name: Tox |
| 29 | + run: tox -e py-test |
31 | 30 |
|
32 | | - # Python interpreter versions. :/ |
33 | | - include: |
34 | | - - tox-env: py27-test |
35 | | - python: 2.7 |
36 | | - - tox-env: py35-test |
37 | | - python: 3.5 |
38 | | - - tox-env: py36-test |
39 | | - python: 3.6 |
40 | | - - tox-env: py37-test |
41 | | - python: 3.7 |
42 | | - - tox-env: py38-test |
43 | | - python: 3.8 |
44 | | - - tox-env: pypy-test |
45 | | - python: pypy3 |
46 | | - |
47 | | - steps: |
48 | | - - uses: actions/checkout@v2 |
49 | | - - name: Set up Python ${{ matrix.python }} |
50 | | - uses: actions/setup-python@v2 |
51 | | - with: |
52 | | - python-version: ${{ matrix.python }} |
53 | | - - name: Install Tox |
54 | | - run: pip install tox |
55 | | - - name: Tox |
56 | | - run: tox -e ${{ matrix.tox-env }} |
57 | | - |
58 | | - style: |
59 | | - name: Style |
60 | | - runs-on: ubuntu-latest |
61 | | - steps: |
62 | | - - uses: actions/checkout@v2 |
63 | | - - uses: TrueBrain/actions-flake8@master |
| 31 | + style: |
| 32 | + name: Style |
| 33 | + runs-on: ubuntu-latest |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@v2 |
| 36 | + - uses: TrueBrain/actions-flake8@master |
0 commit comments