-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 836 Bytes
/
Makefile
File metadata and controls
38 lines (30 loc) · 836 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
#Run virtual environemnt
setup:
python3 -m venv .virtualenv
source .virtualenv/bin/activate
#Show information about environment
env:
which python3
python3 --version
which pytest
which pylint
docker --version
# Install requirements.txt inside virtual environment
install:
pip install --upgrade pip &&\
pip install -r requirements.txt
# Additional, optional, tests could go here
test:
python -m pytest -vv --cov=libs tests/*.py
python -m pytest --nbval notebook.ipynb
validate-circleci:
# See https://circleci.com/docs/2.0/local-cli/#processing-a-config
circleci config process .circleci/config.yml
run-circleci-local:
# See https://circleci.com/docs/2.0/local-cli/#running-a-job
circleci local execute
# Test for sintaxis
lint:
hadolint Dockerfile
pylint --disable=R,C virtualenv cli web
all: install lint test