|
6 | 6 | pull_request: |
7 | 7 | branches: [ main ] |
8 | 8 |
|
| 9 | +concurrency: |
| 10 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 11 | + cancel-in-progress: true |
| 12 | + |
9 | 13 | jobs: |
10 | 14 | test: |
11 | | - |
| 15 | + name: Test py${{ matrix.python-version }} |
12 | 16 | runs-on: ubuntu-latest |
13 | 17 |
|
14 | 18 | strategy: |
| 19 | + fail-fast: false |
15 | 20 | matrix: |
16 | 21 | python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] |
17 | 22 |
|
18 | 23 | steps: |
19 | | - - uses: actions/checkout@v4 |
20 | | - - uses: actions/setup-python@v5 |
| 24 | + - uses: actions/checkout@v6 |
| 25 | + - uses: actions/setup-python@v6 |
21 | 26 | with: |
22 | 27 | python-version: ${{ matrix.python-version }} |
23 | 28 |
|
24 | | - - run: pip install -U pip tox |
25 | | - - run: tox -e py |
26 | | - - uses: codecov/codecov-action@v3 |
| 29 | + - uses: astral-sh/setup-uv@v7 |
| 30 | + - run: uvx --with tox-uv tox -e py |
| 31 | + |
| 32 | + - uses: coverallsapp/github-action@v2 |
| 33 | + with: |
| 34 | + file: .tox/test-reports/coverage.xml |
| 35 | + flag-name: python-${{ matrix.python-version }} |
| 36 | + parallel: true |
| 37 | + |
| 38 | + coveralls-finish: |
| 39 | + name: Finish Coveralls |
| 40 | + needs: [test] |
| 41 | + runs-on: ubuntu-latest |
| 42 | + steps: |
| 43 | + - name: Finish parallel build |
| 44 | + uses: coverallsapp/github-action@v2 |
27 | 45 | with: |
28 | | - files: .tox/test-reports/coverage.xml |
| 46 | + parallel-finished: true |
29 | 47 |
|
30 | 48 | linters: |
31 | 49 |
|
32 | 50 | runs-on: ubuntu-latest |
33 | 51 |
|
34 | 52 | steps: |
35 | | - - uses: actions/checkout@v4 |
36 | | - - uses: actions/setup-python@v5 |
| 53 | + - uses: actions/checkout@v6 |
| 54 | + - uses: actions/setup-python@v6 |
37 | 55 | with: |
38 | | - python-version: "3.11" |
| 56 | + python-version: "3.14" |
39 | 57 |
|
40 | | - - run: pip install -U pip tox |
41 | | - - run: tox -e docs,style |
| 58 | + - uses: astral-sh/setup-uv@v7 |
| 59 | + - run: uvx --with tox-uv tox -e docs,style |
0 commit comments