forked from JuliaRegistries/TagBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 723 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (22 loc) · 723 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
.PHONY: test test-docker publish pytest black flake8 mypy build-ApiFunction build-ReportsFunction
build-ApiFunction build-ReportsFunction:
test -f requirements.txt || poetry export --extras web --without-hashes --output requirements.txt
pip install -r requirements.txt -t $(ARTIFACTS_DIR)/ \
--platform manylinux2014_x86_64 --only-binary=:all: \
--python-version 3.12 --implementation cp
cp -r tagbot $(ARTIFACTS_DIR)/
cp pyproject.toml $(ARTIFACTS_DIR)/
test:
./bin/test.sh
test-docker:
./bin/test-docker.sh
pytest:
python -m pytest --cov tagbot --ignore node_modules
black:
black --check bin stubs tagbot test
flake8:
flake8 bin tagbot test
mypy:
mypy --strict bin tagbot
publish:
./bin/publish.py