-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1.05 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
.PHONY: default install dependency-prod dependency-update lint lint-ci package-check test test-html
# Run install job by default
default: install
# Create a job that deploys this application to the system
install:
poetry install
# Create a job to install dependencies needed for production
dependency-prod:
poetry install --no-dev
dependency-update:
poetry update
npm update
# Create a job for running pytlint on the src
lint:
poetry run black ./src && poetry run isort ./src
# Create a modified job for CI for lint
lint-ci:
poetry run black --check ./src
# Create a job to check for vulnerable packages installed
package-check:
poetry run safety check
# Create a job for running tests on src folder and print coverage to cli
test:
PYTHONPATH=./src poetry run pytest tests --doctest-modules --cov=lazyboost
# Create a job to run pytest on src folder and generate coverage into xml and html
test-html:
PYTHONPATH=./src poetry run pytest tests --doctest-modules --junitxml=junit/test-results.xml \
--cov=lazyboost --cov-report=xml --cov-report=html