2323 runs-on : ubuntu-latest
2424 steps :
2525 - uses : actions/checkout@v4
26+ with :
27+ fetch-depth : 0
2628 - uses : actions/setup-python@v5
2729 with :
2830 python-version : ' 3.12'
4850 - dev
4951 - standard
5052 python-version :
51- - " 3.9"
5253 - " 3.10"
5354 - " 3.11"
55+ - " 3.12"
56+ - " 3.13"
5457 os :
5558 - linux
5659 - win64
6669 install-mode : dev
6770 python-version : " 3.11"
6871 mpi : " true"
72+ exclude :
73+ # ray has no Python 3.13 wheels for Windows
74+ - os : win64
75+ python-version : " 3.13"
6976 steps :
7077 - if : matrix.install-mode == 'dev'
7178 uses : actions/checkout@v4
97104 run : echo PYTEST_ADDOPTS="$PYTEST_ADDOPTS --cov --cov-report=xml" >> $GITHUB_ENV
98105 - name : Run pytest
99106 run : |
100- pip install pytest # ensure pytest is installed (should do nothing if already present from requirements-dev.txt)
107+ pip install pytest
101108 pytest --pyargs parameter_sweep
102109 - name : Upload coverage report as job artifact
103110 if : matrix.coverage
@@ -116,9 +123,7 @@ jobs:
116123 src/parameter_sweep/tests/test*parameter_sweep.py \
117124 src/parameter_sweep/loop_tool/tests/test*loop_tool.py \
118125 --no-cov
119- # merge into single report
120126 coverage combine
121- # convert to XML
122127 coverage xml
123128 - name : Upload coverage report as job artifact
124129 if : matrix.mpi
@@ -133,8 +138,9 @@ jobs:
133138 needs : [pytest]
134139 runs-on : ubuntu-latest
135140 steps :
136- # the checkout step is needed to have access to codecov.yml
137141 - uses : actions/checkout@v4
142+ with :
143+ fetch-depth : 0
138144 - uses : actions/download-artifact@v4
139145 with :
140146 pattern : coverage-report-*
@@ -144,8 +150,6 @@ jobs:
144150 fail_ci_if_error : true
145151 verbose : true
146152 token : ${{ secrets.CODECOV_TOKEN }}
147- # downgrading after v0.7.0 broke tokenless upload
148- # see codecov/codecov-action#1487
149153 version : v0.6.0
150154
151155 build-docs :
@@ -160,4 +164,4 @@ jobs:
160164 with :
161165 python-version : ' 3.11'
162166 - run : pip install -r requirements-dev.txt
163- - run : make -C docs html
167+ - run : make -C docs html
0 commit comments