|
1 | | -name: tests |
| 1 | +name: Test |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - tags-ignore: |
6 | | - - '**' |
7 | | - paths-ignore: |
8 | | - - "*.md" |
9 | | - - ".github/cibuildwheel.yml" |
10 | | - - ".github/publish_pypi.yml" |
| 5 | + branches: [master] |
11 | 6 | pull_request: |
12 | | - types: [opened, synchronize, reopened, edited] |
13 | | - paths-ignore: |
14 | | - - "*.md" |
15 | | - - ".github/cibuildwheel.yml" |
16 | | - - ".github/publish_pypi.yml" |
| 7 | + branches: ["*"] |
| 8 | + workflow_dispatch: # allows you to trigger manually |
| 9 | + |
| 10 | +# When this workflow is queued, automatically cancel any previous running |
| 11 | +# or pending jobs from the same branch |
| 12 | +concurrency: |
| 13 | + group: Test-${{ github.ref }} |
| 14 | + cancel-in-progress: true |
| 15 | + |
17 | 16 | env: |
18 | 17 | MODULE_NAME: 'srsly' |
19 | 18 | RUN_MYPY: 'false' |
20 | 19 |
|
21 | 20 | jobs: |
22 | 21 | tests: |
23 | | - name: Test |
24 | | - if: github.repository_owner == 'explosion' |
25 | 22 | strategy: |
26 | 23 | fail-fast: false |
27 | 24 | matrix: |
28 | 25 | os: [ubuntu-latest, windows-latest] |
29 | | - python_version: ["3.9", "3.10", "3.11", "3.12"] |
| 26 | + # FIXME: ujson segfault on 3.14 |
| 27 | + python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
30 | 28 | runs-on: ${{ matrix.os }} |
31 | 29 |
|
32 | 30 | steps: |
33 | 31 | - name: Check out repo |
34 | | - uses: actions/checkout@v3 |
| 32 | + uses: actions/checkout@v5 |
| 33 | + |
35 | 34 | - name: Configure Python version |
36 | | - uses: actions/setup-python@v4 |
| 35 | + uses: actions/setup-python@v6 |
37 | 36 | with: |
38 | 37 | python-version: ${{ matrix.python_version }} |
39 | 38 | architecture: x64 |
|
0 commit comments