File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,13 +133,24 @@ jobs:
133133 conda activate anaconda-client-env
134134 python setup.py build_ext --inplace
135135
136+ - name : Minidom test
137+ working-directory : python
138+ # Importing either IPython or pytest causes import of xml.dom.minidom
139+ # So to actually test that tskit imports it, we need a minimal test
140+ run : |
141+ source ~/.profile
142+ conda activate anaconda-client-env
143+ python -c "import tskit;tskit.Tree.generate_star(5).tree_sequence.draw_svg(path='test.svg')"
144+
136145 - name : Run tests
137146 working-directory : python
138147 run : |
139148 source ~/.profile
140149 conda activate anaconda-client-env
141150 python -m pytest -x --cov=tskit --cov-report=xml --cov-branch -n2 --durations=20 tests
142151
152+
153+
143154 - name : Upload coverage to Codecov
144155 uses : codecov/codecov-action@v5.4.0
145156 with :
Original file line number Diff line number Diff line change 3131import pathlib
3232import platform
3333import re
34- import xml .dom .minidom
3534import xml .etree
3635
3736import msprime
You can’t perform that action at this time.
0 commit comments