-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 821 Bytes
/
Makefile
File metadata and controls
44 lines (31 loc) · 821 Bytes
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
develop:
pdm sync --clean
lock:
pdm lock
help:
@echo "targets: develop, clean_so and tests"
clean_pyc:
find fluiddyn -name "*.pyc" -delete
find fluiddyn -name "__pycache__" -type d | xargs rm -rf
clean: clean_pyc
format: black isort
black:
pdm black
isort:
pdm isort
tests:
pytest
tests_mpi:
mpirun -np 2 --oversubscribe python -m unittest fluiddyn.util.test.test_mpi -v
tests_coverage:
mkdir -p .coverage
coverage run -p -m pytest --junitxml=.coverage/as_junit.xml
mpirun -np 2 --oversubscribe coverage run -p -m unittest discover fluiddyn.util.test -p test_mpi.py
report_coverage:
coverage combine
coverage report
coverage html
coverage xml
@echo "Code coverage analysis complete. View detailed report:"
@echo "file://${PWD}/.coverage/index.html"
coverage: tests_coverage report_coverage