|
18 | 18 | - uses: actions/checkout@v4
|
19 | 19 | - uses: actions/setup-python@v5
|
20 | 20 | with:
|
21 |
| - python-version: "3.10" |
| 21 | + python-version: "3.13" |
22 | 22 | - run: pip install black==24.10.0
|
23 | 23 | - uses: dtolnay/rust-toolchain@stable
|
24 | 24 | with:
|
|
47 | 47 | fail-fast: false # If one platform fails, allow the rest to keep testing.
|
48 | 48 | matrix:
|
49 | 49 | rust: [stable]
|
50 |
| - python-version: |
51 |
| - [ |
52 |
| - "3.9", |
53 |
| - "3.10", |
54 |
| - "3.11", |
55 |
| - "3.12", |
56 |
| - "3.13", |
57 |
| - "pypy-3.9", |
58 |
| - ] |
| 50 | + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.9"] |
59 | 51 | platform:
|
60 | 52 | [
|
61 | 53 | {
|
|
86 | 78 | include:
|
87 | 79 | # Test minimal supported Rust version
|
88 | 80 | - rust: 1.63.0
|
89 |
| - python-version: "3.10" |
| 81 | + python-version: "3.13" |
90 | 82 | platform:
|
91 | 83 | {
|
92 | 84 | os: "ubuntu-latest",
|
@@ -122,27 +114,28 @@ jobs:
|
122 | 114 | toolchain: ${{ matrix.rust }}
|
123 | 115 | target: ${{ matrix.platform.rust-target }}
|
124 | 116 |
|
125 |
| - # - if: matrix.platform.os == 'ubuntu-latest' |
126 |
| - # name: Prepare LD_LIBRARY_PATH (Ubuntu only) |
127 |
| - # run: echo LD_LIBRARY_PATH=${pythonLocation}/lib >> $GIHUB_ENV |
| 117 | + - if: ${{ matrix.msrv == 'MSRV' }} |
| 118 | + name: Set MSRV dependencies |
| 119 | + run: | |
| 120 | + cargo add tokio@=1.38.1 |
128 | 121 |
|
129 | 122 | - name: Build (no features)
|
130 | 123 | run: cargo build --no-default-features --verbose --target ${{ matrix.platform.rust-target }}
|
131 | 124 |
|
132 | 125 | - name: Build
|
133 | 126 | run: cargo build --features=${{env.features}} --verbose --target ${{ matrix.platform.rust-target }}
|
134 | 127 |
|
135 |
| - # uvloop doesn't compile under Windows, Python 3.11-dev, and PyPy |
136 |
| - - if: ${{ matrix.platform.os != 'windows-latest' && matrix.python-version != '3.11-dev' && !startsWith(matrix.python-version, 'pypy') }} |
| 128 | + # uvloop doesn't compile under Windows and PyPy |
| 129 | + - if: ${{ matrix.platform.os != 'windows-latest' && !startsWith(matrix.python-version, 'pypy') }} |
137 | 130 | name: Install pyo3-asyncio test dependencies
|
138 | 131 | run: |
|
139 | 132 | python -m pip install -U uvloop
|
140 | 133 |
|
141 |
| - - if: ${{ matrix.msrv != 'MSRV' && matrix.python-version != '3.11-dev' && !startsWith(matrix.python-version, 'pypy') }} |
| 134 | + - if: ${{ matrix.msrv != 'MSRV' && !startsWith(matrix.python-version, 'pypy') }} |
142 | 135 | name: Test
|
143 | 136 | run: cargo test --all-features --target ${{ matrix.platform.rust-target }}
|
144 | 137 |
|
145 |
| - - if: ${{ matrix.msrv == 'MSRV' && matrix.python-version != '3.11-dev' && !startsWith(matrix.python-version, 'pypy') }} |
| 138 | + - if: ${{ matrix.msrv == 'MSRV' && !startsWith(matrix.python-version, 'pypy') }} |
146 | 139 | name: Test (MSRV, --no-default-features)
|
147 | 140 | run: cargo test --no-default-features --features tokio-runtime,async-std-runtime,attributes,unstable-streams --target ${{ matrix.platform.rust-target }}
|
148 | 141 |
|
|
0 commit comments