File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 - name : Run tests
3535 run : |
3636 source venv/bin/activate
37- python -m pytest -n=auto --memory --ascii --hdf5 -- cov=imas --cov-report=term-missing --cov-report=xml:coverage.xml --cov-report=html:htmlcov --junit-xml=junit.xml
37+ python -m pytest -n=auto --cov=imas --cov-report=term-missing --cov-report=xml:coverage.xml --cov-report=html:htmlcov --junit-xml=junit.xml
3838
3939 - name : Upload coverage report ${{ matrix.python-version }}
4040 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -58,7 +58,13 @@ def pytest_addoption(parser):
5858 "hdf5" : HDF5_BACKEND ,
5959 "mdsplus" : MDSPLUS_BACKEND ,
6060}
61-
61+ try :
62+ from imas .db_entry import DBEntry
63+ from imas_core .exception import ImasCoreBackendException
64+ DBEntry ("imas:mdsplus?path=dummy" ,"r" )
65+ except ImasCoreBackendException as iex :
66+ if "not available" in str (iex .message ):
67+ _BACKENDS .pop ("mdsplus" )
6268
6369try :
6470 import pytest_xdist
You can’t perform that action at this time.
0 commit comments