|
6 | 6 | pull_request: |
7 | 7 | branches: |
8 | 8 | - master |
| 9 | +concurrency: |
| 10 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} |
| 11 | + cancel-in-progress: true |
9 | 12 | jobs: |
10 | 13 | test: |
11 | 14 | timeout-minutes: 30 |
12 | 15 | strategy: |
13 | 16 | fail-fast: false |
14 | 17 | matrix: |
15 | | - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"] |
| 18 | + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.9"] |
16 | 19 | os: [ubuntu-latest, macos-latest, windows-latest] |
17 | 20 | exclude: |
18 | 21 | - os: macos-latest |
19 | | - python-version: "pypy3" |
| 22 | + python-version: "pypy3.9" |
20 | 23 | - os: windows-latest |
21 | | - python-version: "pypy3" |
| 24 | + python-version: "pypy3.9" |
22 | 25 | runs-on: ${{ matrix.os }} |
23 | 26 | name: "${{ matrix.os }} Python: ${{ matrix.python-version }}" |
24 | 27 | steps: |
25 | | - - uses: actions/checkout@v2 |
| 28 | + - uses: actions/checkout@v3 |
26 | 29 | with: |
27 | 30 | fetch-depth: 0 |
28 | 31 | - name: Set up Python ${{ matrix.python-version }} |
29 | | - uses: actions/setup-python@v2 |
| 32 | + uses: actions/setup-python@v4 |
30 | 33 | with: |
31 | 34 | python-version: ${{ matrix.python-version }} |
32 | 35 | - name: Install dependencies |
33 | 36 | run: | |
34 | | - pip install -U "pip>=21.1" |
35 | | - pip install -U setuptools |
36 | | - pip install -U "tox>=3.23.0,<4" codecov tox-gh-actions coverage |
| 37 | + pip install -U "pip>=23.1.2" |
| 38 | + pip install -U "tox-gh-actions==3.1.0" coverage |
37 | 39 | - name: Log python & pip versions |
38 | 40 | run: | |
39 | 41 | python --version |
40 | 42 | pip --version |
41 | 43 | - name: Run unit tests |
42 | 44 | run: tox |
43 | | - - name: "Coverage report" |
| 45 | + - name: Coverage report |
44 | 46 | run: coverage xml |
45 | | - - name: "Upload coverage to Codecov" |
46 | | - uses: "codecov/codecov-action@v1" |
| 47 | + - name: Upload coverage to Codecov |
| 48 | + uses: codecov/codecov-action@v3 |
47 | 49 | with: |
48 | | - fail_ci_if_error: true |
| 50 | + fail_ci_if_error: false |
49 | 51 | linting: |
50 | 52 | runs-on: ubuntu-latest |
51 | 53 | steps: |
52 | | - - uses: actions/checkout@v2 |
53 | | - - uses: actions/setup-python@v2 |
| 54 | + - uses: actions/checkout@v3 |
| 55 | + - uses: actions/setup-python@v4 |
54 | 56 | with: |
55 | | - python-version: 3.8 |
| 57 | + python-version: 3.9 |
56 | 58 | - name: Install dependencies |
57 | 59 | run: | |
58 | 60 | pip install -U setuptools |
59 | | - pip install -U "tox>=3.23.0,<4" |
| 61 | + pip install -U "tox>=4.5.1,<5" |
60 | 62 | - run: tox -e lint |
61 | 63 | package: |
62 | | - name: "Build & verify package" |
| 64 | + name: Build & verify package |
63 | 65 | runs-on: "ubuntu-latest" |
64 | 66 | steps: |
65 | | - - uses: "actions/checkout@v2" |
66 | | - - uses: "actions/setup-python@v2" |
| 67 | + - uses: actions/checkout@v3 |
| 68 | + - uses: actions/setup-python@v4 |
67 | 69 | with: |
68 | | - python-version: "3.8" |
69 | | - - name: "Install build, check-wheel-content, and twine" |
| 70 | + python-version: "3.9" |
| 71 | + - name: Install build, check-wheel-content, and twine |
70 | 72 | run: "python -m pip install build twine check-wheel-contents" |
71 | | - - name: "Build package" |
| 73 | + - name: Build package |
72 | 74 | run: "python -m build --sdist --wheel ." |
73 | | - - name: "List result" |
| 75 | + - name: List result |
74 | 76 | run: "ls -l dist" |
75 | | - - name: "Check wheel contents" |
| 77 | + - name: Check wheel contents |
76 | 78 | run: "check-wheel-contents dist/*.whl" |
77 | | - - name: "Check long_description" |
| 79 | + - name: Check long_description |
78 | 80 | run: "python -m twine check dist/*" |
0 commit comments