17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- uses : actions/checkout@v3
20
- - uses : actions-rs/ toolchain@v1
20
+ - uses : dtolnay/rust- toolchain@stable
21
21
with :
22
- toolchain : stable
23
- profile : minimal
24
22
components : rustfmt, clippy
25
- default : true
26
23
- uses : Swatinem/rust-cache@v2
27
24
continue-on-error : true
28
25
- run : ./x.py check
34
31
strategy :
35
32
fail-fast : ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
36
33
matrix :
37
- python-version : ["3.7", "3.8", "3.9", "3.10"]
34
+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11" ]
38
35
platform : [
39
36
{ os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" },
40
37
{ os: "macOS-latest", python-architecture: "x64", rust-target: "x86_64-apple-darwin" },
@@ -50,17 +47,14 @@ jobs:
50
47
steps :
51
48
- uses : actions/checkout@v3
52
49
- name : Set up Python ${{ matrix.python-version }}
53
- uses : actions/setup-python@v2
50
+ uses : actions/setup-python@v4
54
51
with :
55
52
python-version : ${{ matrix.python-version }}
56
53
architecture : ${{ matrix.platform.python-architecture }}
57
54
- name : Install Rust
58
- uses : actions-rs/ toolchain@v1
55
+ uses : dtolnay/rust- toolchain@stable
59
56
with :
60
- toolchain : stable
61
- profile : minimal
62
- target : ${{ matrix.platform.rust-target }}
63
- default : true
57
+ targets : ${{ matrix.platform.rust-target }}
64
58
- name : Install toml
65
59
run : pip install toml
66
60
- name : Edit Cargo.toml and enable new resolver
@@ -102,11 +96,7 @@ jobs:
102
96
needs : [lint, check-msrv, examples]
103
97
steps :
104
98
- uses : actions/checkout@v3
105
- - uses : actions-rs/toolchain@v1
106
- with :
107
- toolchain : stable
108
- profile : minimal
109
- default : true
99
+ - uses : dtolnay/rust-toolchain@stable
110
100
- uses : Swatinem/rust-cache@v2
111
101
continue-on-error : true
112
102
- uses : taiki-e/install-action@valgrind
@@ -121,11 +111,7 @@ jobs:
121
111
needs : [lint, check-msrv, examples]
122
112
steps :
123
113
- uses : actions/checkout@v3
124
- - uses : actions-rs/toolchain@v1
125
- with :
126
- toolchain : nightly
127
- profile : minimal
128
- default : true
114
+ - uses : dtolnay/rust-toolchain@nightly
129
115
- uses : Swatinem/rust-cache@v2
130
116
continue-on-error : true
131
117
- run : |
@@ -138,15 +124,11 @@ jobs:
138
124
steps :
139
125
- uses : actions/checkout@v3
140
126
- name : Set up Python
141
- uses : actions/setup-python@v2
127
+ uses : actions/setup-python@v4
142
128
with :
143
129
python-version : 3.8
144
130
- name : Install Rust
145
- uses : actions-rs/toolchain@v1
146
- with :
147
- toolchain : 1.48.0
148
- profile : minimal
149
- default : true
131
+
150
132
- uses : Swatinem/rust-cache@v2
151
133
with :
152
134
workspaces : examples/simple
@@ -193,17 +175,13 @@ jobs:
193
175
steps :
194
176
- uses : actions/checkout@v3
195
177
- name : Set up Python
196
- uses : actions/setup-python@v2
178
+ uses : actions/setup-python@v4
197
179
with :
198
180
python-version : 3.8
199
181
- name : Install OpenBLAS
200
182
run : sudo apt install --yes libopenblas-dev
201
183
- name : Install Rust
202
- uses : actions-rs/toolchain@v1
203
- with :
204
- toolchain : stable
205
- profile : minimal
206
- default : true
184
+ uses : dtolnay/rust-toolchain@stable
207
185
- uses : Swatinem/rust-cache@v2
208
186
continue-on-error : true
209
187
- name : Test examples
@@ -218,20 +196,17 @@ jobs:
218
196
steps :
219
197
- uses : actions/checkout@v3
220
198
- name : Set up Python
221
- uses : actions/setup-python@v2
199
+ uses : actions/setup-python@v4
222
200
with :
223
201
python-version : 3.9
224
202
architecture : x64
225
203
- name : Install numpy
226
204
run : pip install numpy
227
205
- uses : Swatinem/rust-cache@v2
228
206
continue-on-error : true
229
- - uses : actions-rs/ toolchain@v1
207
+ - uses : dtolnay/rust- toolchain@stable
230
208
with :
231
- toolchain : stable
232
- profile : minimal
233
209
components : llvm-tools-preview
234
- default : true
235
210
- name : Install cargo-llvm-cov
236
211
uses : taiki-e/install-action@cargo-llvm-cov
237
212
- name : Generate code coverage
0 commit comments