26
26
strategy :
27
27
fail-fast : false # If one platform fails, allow the rest to keep testing.
28
28
matrix :
29
- python-version : [3.6, 3.7, 3.8, 3.9, 3.10-dev , pypy-3.6, pypy-3.7]
29
+ python-version : [3.6, 3.7, 3.8, 3.9, " 3.10" , pypy-3.6, pypy-3.7]
30
30
platform : [
31
31
{ os: "macos-latest", python-architecture: "x64", rust-target: "x86_64-apple-darwin" },
32
32
{ os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" },
37
37
# No 64-bit pypy 3.6 on Windows
38
38
- python-version : pypy-3.6
39
39
platform : { os: "windows-latest", python-architecture: "x64" }
40
+ # Macos 11 actions runners don't support pypy-3.6
41
+ - python-version : pypy-3.6
42
+ platform : { os: "macos-latest" }
40
43
# No 32-bit pypy 3.7 on Windows
41
44
- python-version : pypy-3.7
42
45
platform : { os: "windows-latest", python-architecture: "x86" }
@@ -119,7 +122,7 @@ jobs:
119
122
- name : Setup python
120
123
uses : actions/setup-python@v2
121
124
with :
122
- python-version : 3.6
125
+ python-version : 3.9
123
126
124
127
- uses : actions-rs/toolchain@v1
125
128
with :
@@ -139,21 +142,25 @@ jobs:
139
142
run : |
140
143
cd examples/rust_with_cffi/
141
144
python --version
142
- pip install wheel
143
- python setup.py bdist_wheel --py-limited-api=cp36
145
+ pip install -U pip wheel setuptools
146
+ python setup.py bdist_wheel --py-limited-api=cp39
144
147
ls -la dist/
148
+ env :
149
+ # https://github.com/actions/setup-python/issues/26
150
+ MACOSX_DEPLOYMENT_TARGET : 10.9
145
151
146
152
# Now we switch to a differnet Python version and ensure we can install
147
153
# the wheel we just built.
148
154
- name : Setup python
149
155
uses : actions/setup-python@v2
150
156
with :
151
- python-version : 3.8
157
+ python-version : " 3.10 "
152
158
153
159
- name : Install abi3 wheel and run tests
154
160
shell : bash
155
161
run : |
156
162
cd examples/
163
+ pip install -U pip wheel setuptools
157
164
python --version
158
165
pip install rust_with_cffi/dist/rust_with_cffi*.whl
159
166
python -c "from rust_with_cffi import rust; assert rust.rust_func() == 14"
0 commit comments