-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (46 loc) · 926 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
SHELL := bash
TERRAFORM_VERSION := 1.5.7
# Github shim
ifdef RUNNER_OS
TRAVIS_OS_NAME := $(shell echo -n '$(RUNNER_OS)' | tr '[:upper:]' '[:lower:]')
endif
ifdef RUNNER_ARCH
ifeq ($(RUNNER_ARCH),X64)
TRAVIS_CPU_ARCH := amd64
else
TRAVIS_CPU_ARCH := arm64
endif
endif
ifdef PYTHON_VERSION
TRAVIS_PYTHON_VERSION := $(PYTHON_VERSION)
endif
.PHONY: all
all:
.PHONY: dev
dev:
pip install . --no-cache-dir
.PHONY: build
build:
$(info )
$(info 🛠️ building...)
pip install -r requirements.txt
python -m build
.PHONY: lint
lint:
$(info )
$(info ✨ linting...)
flake8 votifier/
.PHONY: test
test: lint
$(info )
$(info 🧪 testing...)
ifeq ($(TRAVIS_PYTHON_VERSION),3.12)
coverage run --source=votifier -m unittest discover
coveralls
else
coverage run --source=votifier -m unittest discover
coverage report --skip-covered --show-missing
endif
.PHONY: publish
publish:
python -m twine upload dist/*