@@ -52,30 +52,39 @@ jobs:
52
52
python-version : ' 3.11'
53
53
extra-requirements : ' -c requirements/testing/minver.txt'
54
54
delete-font-cache : true
55
+ codecov-test-results-action-os : ' linux'
55
56
- os : ubuntu-22.04
56
57
python-version : ' 3.11'
57
58
CFLAGS : " -fno-lto" # Ensure that disabling LTO works.
58
59
extra-requirements : ' -r requirements/testing/extra.txt'
60
+ codecov-test-results-action-os : ' linux'
59
61
- os : ubuntu-22.04-arm
60
62
python-version : ' 3.12'
63
+ codecov-test-results-action-os : ' linux-arm64'
61
64
- os : ubuntu-22.04
62
65
python-version : ' 3.13'
66
+ codecov-test-results-action-os : ' linux'
63
67
- name-suffix : " Free-threaded"
64
68
os : ubuntu-22.04
65
69
python-version : ' 3.13t'
70
+ codecov-test-results-action-os : ' linux'
66
71
- os : ubuntu-24.04
67
72
python-version : ' 3.12'
73
+ codecov-test-results-action-os : ' linux'
68
74
- os : macos-13 # This runner is on Intel chips.
69
75
# merge numpy and pandas install in nighties test when this runner is dropped
70
76
python-version : ' 3.10'
77
+ codecov-test-results-action-os : ' macos'
71
78
- os : macos-14 # This runner is on M1 (arm64) chips.
72
79
python-version : ' 3.12'
73
80
# https://github.com/matplotlib/matplotlib/issues/29732
74
81
pygobject-ver : ' <3.52.0'
82
+ codecov-test-results-action-os : ' macos'
75
83
- os : macos-14 # This runner is on M1 (arm64) chips.
76
84
python-version : ' 3.13'
77
85
# https://github.com/matplotlib/matplotlib/issues/29732
78
86
pygobject-ver : ' <3.52.0'
87
+ codecov-test-results-action-os : ' macos'
79
88
80
89
steps :
81
90
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -326,8 +335,15 @@ jobs:
326
335
fi
327
336
pytest -rfEsXR -n auto \
328
337
--maxfail=50 --timeout=300 --durations=25 \
329
- --cov-report=xml --cov=lib --log-level=DEBUG --color=yes
338
+ --cov-report=xml --cov=lib --log-level=DEBUG --color=yes \
339
+ --junitxml=junit.xml -o junit_family=legacy
330
340
341
+ - name : Upload test results to Codecov
342
+ if : ${{ !cancelled() }} # Run even if tests fail
343
+ uses : codecov/test-results-action@v1
344
+ with :
345
+ token : ${{ secrets.CODECOV_TOKEN }}
346
+ os : ${{ matrix.codecov-test-results-action-os }}
331
347
- name : Cleanup non-failed image files
332
348
if : failure()
333
349
run : |
0 commit comments