@@ -27,14 +27,14 @@ jobs:
2727 strategy :
2828 fail-fast : false
2929 matrix :
30- python-version : ["3.7","3.9","3.11","3.12"]
30+ python-version : ["3.7","3.9","3.11","3.12","3.13" ]
3131 # python3.6 reached EOL and is no longer being supported on
3232 # new versions of hosted runners on Github Actions
3333 # ubuntu-20.04 is the last version that supported python3.6
3434 # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
3535 os : [ubuntu-20.04]
3636 steps :
37- - uses : actions/checkout@v4.1.7
37+ - uses : actions/checkout@v4.2.2
3838 - uses : actions/setup-python@v5
3939 with :
4040 python-version : ${{ matrix.python-version }}
@@ -65,38 +65,48 @@ jobs:
6565 run : |
6666 set -x # print commands that are executed
6767 ./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub-latest"
68+ - name : Generate coverage XML (Python 3.6)
69+ if : ${{ !cancelled() && matrix.python-version == '3.6' }}
70+ run : |
71+ export COVERAGE_RCFILE=.coveragerc36
72+ coverage combine .coverage-sentry-*
73+ coverage xml --ignore-errors
6874 - name : Generate coverage XML
69- if : ${{ !cancelled() }}
75+ if : ${{ !cancelled() && matrix.python-version != '3.6' }}
7076 run : |
71- coverage combine .coverage*
72- coverage xml -i
77+ coverage combine .coverage-sentry- *
78+ coverage xml
7379 - name : Upload coverage to Codecov
7480 if : ${{ !cancelled() }}
75- uses : codecov/codecov-action@v4.5.0
81+ uses : codecov/codecov-action@v5.0.7
7682 with :
7783 token : ${{ secrets.CODECOV_TOKEN }}
7884 files : coverage.xml
85+ # make sure no plugins alter our coverage reports
86+ plugin : noop
87+ verbose : true
7988 - name : Upload test results to Codecov
8089 if : ${{ !cancelled() }}
8190 uses : codecov/test-results-action@v1
8291 with :
8392 token : ${{ secrets.CODECOV_TOKEN }}
8493 files : .junitxml
94+ verbose : true
8595 test-ai-pinned :
8696 name : AI (pinned)
8797 timeout-minutes : 30
8898 runs-on : ${{ matrix.os }}
8999 strategy :
90100 fail-fast : false
91101 matrix :
92- python-version : ["3.7 ","3.9","3.11","3.12"]
102+ python-version : ["3.8 ","3.9","3.11","3.12","3.13 "]
93103 # python3.6 reached EOL and is no longer being supported on
94104 # new versions of hosted runners on Github Actions
95105 # ubuntu-20.04 is the last version that supported python3.6
96106 # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
97107 os : [ubuntu-20.04]
98108 steps :
99- - uses : actions/checkout@v4.1.7
109+ - uses : actions/checkout@v4.2.2
100110 - uses : actions/setup-python@v5
101111 with :
102112 python-version : ${{ matrix.python-version }}
@@ -127,25 +137,35 @@ jobs:
127137 run : |
128138 set -x # print commands that are executed
129139 ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huggingface_hub"
140+ - name : Generate coverage XML (Python 3.6)
141+ if : ${{ !cancelled() && matrix.python-version == '3.6' }}
142+ run : |
143+ export COVERAGE_RCFILE=.coveragerc36
144+ coverage combine .coverage-sentry-*
145+ coverage xml --ignore-errors
130146 - name : Generate coverage XML
131- if : ${{ !cancelled() }}
147+ if : ${{ !cancelled() && matrix.python-version != '3.6' }}
132148 run : |
133- coverage combine .coverage*
134- coverage xml -i
149+ coverage combine .coverage-sentry- *
150+ coverage xml
135151 - name : Upload coverage to Codecov
136152 if : ${{ !cancelled() }}
137- uses : codecov/codecov-action@v4.5.0
153+ uses : codecov/codecov-action@v5.0.7
138154 with :
139155 token : ${{ secrets.CODECOV_TOKEN }}
140156 files : coverage.xml
157+ # make sure no plugins alter our coverage reports
158+ plugin : noop
159+ verbose : true
141160 - name : Upload test results to Codecov
142161 if : ${{ !cancelled() }}
143162 uses : codecov/test-results-action@v1
144163 with :
145164 token : ${{ secrets.CODECOV_TOKEN }}
146165 files : .junitxml
166+ verbose : true
147167 check_required_tests :
148- name : All AI tests passed
168+ name : All pinned AI tests passed
149169 needs : test-ai-pinned
150170 # Always run this, even if a dependent job failed
151171 if : always()
0 commit comments