|
1 | 1 | name: Tests
|
2 | 2 |
|
3 |
| -on: [push] |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + tags: |
| 8 | + - '**' |
| 9 | + pull_request: |
| 10 | + |
| 11 | +env: |
| 12 | + FORCE_COLOR: 1 |
4 | 13 |
|
5 | 14 | jobs:
|
6 | 15 | test:
|
7 |
| - name: Run tests with pytest |
| 16 | + name: Run tests |
8 | 17 | strategy:
|
9 | 18 | fail-fast: false
|
10 | 19 | matrix:
|
11 |
| - os: [ubuntu-latest, macos-latest, windows-latest] |
12 | 20 | python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
|
| 21 | + os: [ubuntu-latest, macos-latest, windows-latest] |
13 | 22 | runs-on: ${{ matrix.os }}
|
14 | 23 | steps:
|
15 | 24 | - uses: actions/checkout@v4
|
|
32 | 41 | path: coverage
|
33 | 42 | include-hidden-files: true
|
34 | 43 |
|
| 44 | + test-typing-extensions: |
| 45 | + name: Run test on typing-extensions |
| 46 | + runs-on: ubuntu-latest |
| 47 | + strategy: |
| 48 | + fail-fast: false |
| 49 | + matrix: |
| 50 | + typing-extensions: [main, lowest] |
| 51 | + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] |
| 52 | + |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v4 |
| 55 | + - uses: astral-sh/setup-uv@v5 |
| 56 | + with: |
| 57 | + python-version: ${{ matrix.python-version }} |
| 58 | + - name: Install dependencies and typing-extensions main |
| 59 | + run: | |
| 60 | + uv sync --group tests |
| 61 | + uv pip install 'typing-extensions @ git+https://github.com/python/typing_extensions.git' |
| 62 | + if: matrix.typing-extensions == 'main' |
| 63 | + - name: Install lowest dependencies |
| 64 | + run: uv sync --group tests --resolution lowest-direct |
| 65 | + if: matrix.typing-extensions == 'lowest' |
| 66 | + - name: Run tests |
| 67 | + run: make test |
| 68 | + |
35 | 69 | docs:
|
36 | 70 | name: Build and check documentation
|
37 | 71 | runs-on: ubuntu-latest
|
@@ -103,8 +137,6 @@ jobs:
|
103 | 137 |
|
104 | 138 | steps:
|
105 | 139 | - uses: actions/checkout@v4
|
106 |
| - with: |
107 |
| - persist-credentials: false |
108 | 140 |
|
109 | 141 | - name: Download coverage data
|
110 | 142 | uses: actions/download-artifact@v4
|
|
0 commit comments