FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
climada_python/Makefile at develop · CLIMADA-project/climada_python · GitHub
CLIMADA-project
/
climada_python
Public
Notifications
You must be signed in to change notification settings
Fork
166
Star
477
Code
Issues
128
Pull requests
18
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
climada_python
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
50 lines (38 loc) · 1.42 KB
Breadcrumbs
climada_python
/
Makefile
Copy path
File metadata and controls
50 lines (38 loc) · 1.42 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
##
#
test, coverage and lint
#
##
PYTEST_JUNIT_ARGS
= --junitxml=tests_xml/tests.xml
PYTEST_COV_ARGS
=
\
--cov --cov-config=.coveragerc --cov-report html:coverage
\
--cov-report xml:coverage.xml --cov-report term:skip-covered
PYTEST_ARGS
=
$(
PYTEST_JUNIT_ARGS
)
$(
PYTEST_COV_ARGS
)
.PHONY
: help
help
:
#
# Use one of the following instructions:
@fgrep -h
"
##
"
$(
MAKEFILE_LIST
)
|
fgrep -v fgrep
|
sed -e
'
s/\\$$//
'
|
sed -e
'
s/##//
'
.PHONY
: lint
lint
:
#
# Static code analysis with Pylint
pylint -ry climada
>
pylint.log
||
true
.PHONY
: unit_test
unit_test
:
#
# Unit tests execution with coverage and xml reports
pytest
$(
PYTEST_ARGS
)
--ignore=climada/test climada/
.PHONY
: install_test
install_test
:
#
# Test installation was successful
pytest
$(
PYTEST_JUNIT_ARGS
)
--pyargs climada.engine.test.test_cost_benefit
\
climada.engine.test.test_impact
.PHONY
: data_test
data_test
:
#
# Test data APIs
pytest
$(
PYTEST_JUNIT_ARGS
)
script/jenkins/test_data_api.py
.PHONY
: notebook_test
notebook_test
:
#
# Test notebooks in doc/tutorial
pytest
$(
PYTEST_JUNIT_ARGS
)
script/jenkins/test_notebooks.py
.PHONY
: integ_test
integ_test
:
#
# Integration tests execution with xml reports
pytest
$(
PYTEST_ARGS
)
climada/test/
.PHONY
: test
test
:
#
# Unit and integration tests execution with coverage and xml reports
pytest
$(
PYTEST_ARGS
)
climada/
.PHONY
: ci-clean
ci-clean
:
rm -rf tests_xml
rm pylint.log coverage.xml
rm -r coverage
Back
|
FazBrowse Home
|
New Git URL