85
85
uses : codecov/codecov-action@v3
86
86
with :
87
87
directory : empty
88
- token : 87cefb17-c44b-4f2f-8b30-1fff5769ce46
89
88
name : Windows (${{ matrix.python }}, ${{ matrix.arch }}${{ matrix.extra_name }})
89
+ # multiple flags is marked as an error in codecov UI, but is actually fine
90
+ # https://github.com/codecov/feedback/issues/567
90
91
flags : Windows,${{ matrix.python }}
92
+ # this option cannot be set in .codecov.yml
93
+ fail_ci_if_error : true
91
94
92
95
Ubuntu :
93
96
name : ' Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})'
@@ -131,13 +134,15 @@ jobs:
131
134
env :
132
135
CHECK_FORMATTING : ' ${{ matrix.check_formatting }}'
133
136
NO_TEST_REQUIREMENTS : ' ${{ matrix.no_test_requirements }}'
134
- - if : always()
137
+ - if : >-
138
+ always()
139
+ && matrix.check_formatting != '1'
135
140
uses: codecov/codecov-action@v3
136
141
with:
137
142
directory: empty
138
- token : 87cefb17-c44b-4f2f-8b30-1fff5769ce46
139
143
name: Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})
140
144
flags: Ubuntu,${{ matrix.python }}
145
+ fail_ci_if_error: true
141
146
142
147
macOS :
143
148
name : ' macOS (${{ matrix.python }})'
@@ -171,9 +176,9 @@ jobs:
171
176
uses : codecov/codecov-action@v3
172
177
with :
173
178
directory : empty
174
- token : 87cefb17-c44b-4f2f-8b30-1fff5769ce46
175
179
name : macOS (${{ matrix.python }})
176
180
flags : macOS,${{ matrix.python }}
181
+ fail_ci_if_error : true
177
182
178
183
# run CI on a musl linux
179
184
Alpine :
@@ -193,13 +198,16 @@ jobs:
193
198
run : python -m venv .venv
194
199
- name : Run tests
195
200
run : source .venv/bin/activate && ./ci.sh
201
+ - name : Get Python version for codecov flag
202
+ id : get-version
203
+ run : echo "version=$(python -V | cut -d' ' -f2 | cut -d'.' -f1,2)" >> "${GITHUB_OUTPUT}"
196
204
- if : always()
197
205
uses : codecov/codecov-action@v3
198
206
with :
199
207
directory : empty
200
- token : 87cefb17-c44b-4f2f-8b30-1fff5769ce46
201
208
name : Alpine
202
- flags : Alpine,3.12
209
+ flags : Alpine,${{ steps.get-version.outputs.version }}
210
+ fail_ci_if_error : true
203
211
204
212
Cython :
205
213
name : " Cython"
0 commit comments