@@ -61,6 +61,7 @@ def run_pybamm_requires(session):
61
61
def run_coverage (session ):
62
62
"""Run the coverage tests and generate an XML report."""
63
63
set_environment_variables (PYBAMM_ENV , session = session )
64
+ session .install ("setuptools" , silent = False )
64
65
session .install ("coverage" , silent = False )
65
66
session .install ("-e" , ".[all,dev,jax]" , silent = False )
66
67
session .run ("pytest" , "--cov=pybamm" , "--cov-report=xml" , "tests/unit" )
@@ -70,6 +71,7 @@ def run_coverage(session):
70
71
def run_integration (session ):
71
72
"""Run the integration tests."""
72
73
set_environment_variables (PYBAMM_ENV , session = session )
74
+ session .install ("setuptools" , silent = False )
73
75
session .install ("-e" , ".[all,dev,jax]" , silent = False )
74
76
session .run ("python" , "run-tests.py" , "--integration" )
75
77
@@ -88,6 +90,7 @@ def run_doctests(session):
88
90
def run_unit (session ):
89
91
"""Run the unit tests."""
90
92
set_environment_variables (PYBAMM_ENV , session = session )
93
+ session .install ("setuptools" , silent = False )
91
94
session .install ("-e" , ".[all,dev,jax]" , silent = False )
92
95
session .run ("python" , "run-tests.py" , "--unit" )
93
96
@@ -96,6 +99,7 @@ def run_unit(session):
96
99
def run_examples (session ):
97
100
"""Run the examples tests for Jupyter notebooks."""
98
101
set_environment_variables (PYBAMM_ENV , session = session )
102
+ session .install ("setuptools" , silent = False )
99
103
session .install ("-e" , ".[all,dev]" , silent = False )
100
104
notebooks_to_test = session .posargs if session .posargs else []
101
105
session .run ("pytest" , "--nbmake" , * notebooks_to_test , external = True )
@@ -139,6 +143,7 @@ def set_dev(session):
139
143
def run_tests (session ):
140
144
"""Run the unit tests and integration tests sequentially."""
141
145
set_environment_variables (PYBAMM_ENV , session = session )
146
+ session .install ("setuptools" , silent = False )
142
147
session .install ("-e" , ".[all,dev,jax]" , silent = False )
143
148
session .run ("python" , "run-tests.py" , "--all" )
144
149
0 commit comments