-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathMakefile
67 lines (50 loc) · 1.55 KB
/
Makefile
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
install-dependencies-dev:
poetry install --only dev --no-root
install-dependencies-examples:
poetry install --only examples --no-root
install-dependencies-main:
poetry install --only main --no-root
install-dependencies-all:
poetry install --with examples --no-root
install-pre-commit:
pre-commit install --install-hooks
install:
poetry install --no-root
make install-pre-commit
prepare:
pre-commit run --all-files
lint: prepare
test-integration:
pytest tests/integration
test-integration-with-creds:
pytest tests/integration_with_creds
test-exclude-integration-with-creds:
pytest tests --ignore=tests/integration_with_creds
test-unit:
pytest tests/unit
test:
pytest tests
test-cov:
mkdir -p ./reports
coverage run -m pytest --junitxml=./reports/test-results.xml tests
coverage report --skip-empty --skip-covered
coverage html -d ./reports/htmlcov --omit="*/test_*,*/tests.py"
coverage xml -o ./reports/coverage.xml --omit="*/test_*,*/tests.py"
test-cov-exclude-integration-with-creds:
mkdir -p ./reports
coverage run -m pytest --junitxml=./reports/test-results.xml tests --ignore=tests/integration_with_creds
coverage report --skip-empty --skip-covered
coverage html -d ./reports/htmlcov --omit="*/test_*,*/tests.py"
coverage xml -o ./reports/coverage.xml --omit="*/test_*,*/tests.py"
build-mkdocs:
rm -rf mkdocs/
python scripts/generate_mkdocs.py
cp README.md mkdocs/index.md
cp -rf docs/tutorials/ mkdocs/tutorials/
mkdocs build
publish-mkdocs:
make build-mkdocs
mkdocs gh-deploy --force
run-mkdocs-locally:
make build-mkdocs
mkdocs serve