@@ -126,23 +126,60 @@ jobs:
126126 python -m pytest -x --cov=tskit --cov-report=xml --cov-branch -n2 --durations=20 tests
127127 fi
128128
129- - name : Build and run with numpy 1.x
129+ - name : Upload coverage to Codecov
130+ uses : codecov/codecov-action@v5.4.0
131+ with :
132+ token : ${{ secrets.CODECOV_TOKEN }}
133+ working-directory : python
134+ fail_ci_if_error : false
135+ flags : python-tests
136+ name : codecov-umbrella
137+ verbose : true
138+
139+ test-numpy1 :
140+ name : Numpy 1.x
141+ runs-on : ubuntu-24.04
142+ defaults :
143+ run :
144+ shell : bash
145+ steps :
146+ - name : Cancel Previous Runs
147+ uses : styfle/cancel-workflow-action@0.12.1
148+ with :
149+ access_token : ${{ github.token }}
150+
151+ - name : Checkout
152+ uses : actions/checkout@v4.2.2
153+
154+ - name : Setup Python
155+ uses : actions/setup-python@v5.4.0
156+ with :
157+ python-version : ' 3.12'
158+
159+ - name : Install dependencies
130160 working-directory : python
131161 run : |
132- source ~/.profile
133- conda activate anaconda-client-env
134- conda install --yes "numpy<2"
135- python -m pytest -x --cov=tskit --cov-report=xml --cov-branch -n2 tests/test_lowlevel.py
162+ pip install -r requirements/CI-complete/requirements.txt
163+ pip install "numpy<2"
136164
165+ - name : Build module
166+ working-directory : python
167+ run : |
168+ python setup.py build_ext --inplace
169+
170+ - name : Run tests with numpy 1.x
171+ working-directory : python
172+ run : |
173+ python -m pytest -x --cov=tskit --cov-report=xml --cov-branch -n2 tests/test_lowlevel.py tests/test_highlevel.py
137174
138175 - name : Upload coverage to Codecov
139176 uses : codecov/codecov-action@v5.4.0
140177 with :
141178 token : ${{ secrets.CODECOV_TOKEN }}
142179 working-directory : python
143180 fail_ci_if_error : false
144- flags : python-tests
145- name : codecov-umbrella
181+ flags : python-tests-numpy1
182+ name : codecov-numpy1
146183 verbose : true
147184
148185 msys2 :
0 commit comments