-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (29 loc) · 877 Bytes
/
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
.PHONY: docs tests
# Dependencies
dependencies:
poetry install
# Tests
unit-tests:
poetry run py.test --cov=inception --cov-branch --cov-fail-under=90 tests/unit_tests
integ-tests:
poetry run py.test --cov=inception --cov-branch --cov-fail-under=90 tests/integ_tests
tests: unit-tests integ-tests
coverage:
poetry run py.test --cov=inception --cov-branch --cov-fail-under=90 --cov-report=xml:coverage.xml tests
# Static analysis/linting
lint:
poetry run flake8 inception --max-line-length=120
# poetry run flake8 tests --max-line-length=120 --ignore=E722
# Docs
docs:
poetry run mkdocs serve
# Building and publishing
build: lint # unit-tests lint
poetry build
publish: build
poetry publish
# CI
ci-publish:
poetry publish --build --username "${PYPI_USERNAME}" --password "${PYPI_PASSWORD}" --no-interaction
ci-bump-version:
poetry run bump2version patch