22# test, coverage and lint
33# ##
44
5+ PRE_CMD = uv run --
6+
57PYTEST_JUNIT_ARGS = --junitxml=tests_xml/tests.xml
68
79PYTEST_COV_ARGS = \
@@ -16,32 +18,32 @@ help: ## Use one of the following instructions:
1618
1719.PHONY : lint
1820lint : # # Static code analysis with Pylint
19- pylint -ry climada > pylint.log || true
21+ $( PRE_CMD ) pylint -ry climada > pylint.log || true
2022
2123.PHONY : unit_test
2224unit_test : # # Unit tests execution with coverage and xml reports
23- pytest $(PYTEST_ARGS ) --ignore=climada/test climada/
25+ $( PRE_CMD ) pytest $(PYTEST_ARGS ) --ignore=climada/test climada/
2426
2527.PHONY : install_test
2628install_test : # # Test installation was successful
27- pytest $(PYTEST_JUNIT_ARGS ) --pyargs climada.engine.test.test_cost_benefit \
29+ $( PRE_CMD ) pytest $(PYTEST_JUNIT_ARGS ) --pyargs climada.engine.test.test_cost_benefit \
2830 climada.engine.test.test_impact
2931
3032.PHONY : data_test
3133data_test : # # Test data APIs
32- pytest $(PYTEST_JUNIT_ARGS ) script/jenkins/test_data_api.py
34+ $( PRE_CMD ) pytest $(PYTEST_JUNIT_ARGS ) script/jenkins/test_data_api.py
3335
3436.PHONY : notebook_test
3537notebook_test : # # Test notebooks in doc/tutorial
36- pytest $(PYTEST_JUNIT_ARGS ) script/jenkins/test_notebooks.py
38+ $( PRE_CMD ) pytest $(PYTEST_JUNIT_ARGS ) script/jenkins/test_notebooks.py
3739
3840.PHONY : integ_test
3941integ_test : # # Integration tests execution with xml reports
40- pytest $(PYTEST_ARGS ) climada/test/
42+ $( PRE_CMD ) pytest $(PYTEST_ARGS ) climada/test/
4143
4244.PHONY : test
4345test : # # Unit and integration tests execution with coverage and xml reports
44- pytest $(PYTEST_ARGS ) climada/
46+ $( PRE_CMD ) pytest $(PYTEST_ARGS ) climada/
4547
4648.PHONY : ci-clean
4749ci-clean :
0 commit comments