70
70
71
71
72
72
test :
73
+ needs : [checks]
73
74
name : test ${{ matrix.os }} rust ${{ matrix.rustc || 'stable' }} ${{ matrix.extra_desc }}
74
75
runs-on : ${{ matrix.os }}
75
76
continue-on-error : ${{ matrix.allow_failure || false }}
@@ -83,40 +84,49 @@ jobs:
83
84
rustc : " 1.75.0"
84
85
extra_desc : dist-tests
85
86
extra_args : --no-default-features --features=dist-tests test_dist_ -- --test-threads 1
87
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
86
88
- os : ubuntu-22.04
87
89
rustc : stable
88
90
extra_desc : dist-server
89
91
extra_args : --features=dist-server
92
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
90
93
- os : ubuntu-22.04
91
94
rustc : stable
95
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
92
96
- os : ubuntu-22.04
93
97
rustc : beta
98
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
94
99
- os : ubuntu-22.04
95
100
rustc : nightly
96
101
allow_failure : true
97
102
extra_args : --features=unstable
103
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
98
104
- os : ubuntu-22.04
99
105
extra_desc : no-default-features
100
106
extra_args : --no-default-features
101
107
allow_failure : true
102
108
- os : ubuntu-22.04
103
109
cuda : " 11.8"
104
110
extra_desc : cuda11.8
111
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
105
112
- os : ubuntu-24.04
106
113
cuda : " 12.8"
107
114
# Oldest supported version, keep in sync with README.md
108
115
rustc : " 1.75.0"
109
116
extra_desc : cuda12.8
117
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
110
118
- os : macos-13
111
119
no_coverage : true
112
120
# # M1 CPU
113
121
- os : macos-14
122
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
114
123
- os : windows-2019
115
124
cuda : " 11.8"
116
125
# Oldest supported version, keep in sync with README.md
117
126
rustc : " 1.75.0"
118
127
extra_args : --no-fail-fast
119
128
extra_desc : cuda11.8
129
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
120
130
- os : windows-2019
121
131
cuda : " 11.8"
122
132
rustc : nightly
@@ -128,18 +138,21 @@ jobs:
128
138
cuda : " 11.8"
129
139
rustc : beta
130
140
extra_desc : cuda11.8
141
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
131
142
- os : windows-2022
132
143
cuda : " 12.8"
133
144
# Oldest supported version, keep in sync with README.md
134
145
rustc : " 1.75.0"
135
146
extra_args : --no-fail-fast
136
147
extra_desc : cuda12.8
148
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
137
149
- os : windows-2022
138
150
cuda : " 12.8"
139
151
rustc : nightly
140
152
allow_failure : true
141
153
extra_args : --features=unstable
142
154
extra_desc : cuda12.8
155
+ no_coverage : ${{ needs.checks.outputs.has-codecov-token != 'true' }}
143
156
- os : windows-2022
144
157
cuda : " 12.8"
145
158
rustc : beta
@@ -199,7 +212,6 @@ jobs:
199
212
echo '[env]
200
213
LLVM_PROFILE_FILE = { value = "target/debug/coverage/default-%p-%8m.profraw", relative = true }' >> .cargo/config.toml
201
214
202
-
203
215
- name : Execute tests
204
216
run : cargo test --locked --all-targets ${{ matrix.extra_args }}
205
217
env :
0 commit comments