-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.makim.yaml
101 lines (92 loc) · 2.64 KB
/
.makim.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: 1.0
groups:
develop:
targets:
gen-certs:
help: Generate and copy certs
run: |
mkdir -p containers/esconfig/certs
docker cp es:/usr/share/elasticsearch/config/certs/http_ca.crt ./containers/esconfig/certs/
curl --cacert ./containers/esconfig/certs/http_ca.crt -u elastic:worksfine https://es:9200/
clean:
targets:
all:
help: Clean unnecessary temporary files
run: |
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name
find . -name '__pycache__' -exec rm -fr '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +{} +
rm -f .coverage
rm -fr htmlcov/
rm -fr .pytest_cache
rm -fr .mypy_cache
rm -fr .ruff_cache
docs:
targets:
build:
help: Build documentation
run: |
mkdocs build --config-file docs/mkdocs.yaml
preview:
help: Preview documentation page locally
dependencies:
- target: docs.build
run: |
mkdocs build --config-file docs/mkdocs.yaml
tests:
targets:
linter:
help: Run linter tools
run: |
pre-commit install
pre-commit run --all-files --verbose
unit:
help: run tests
args:
path:
help: Specify the location of the tests
type: string
default: ""
params:
help: Specify parameters to be used for tests
type: string
default: "-vv"
run: |
pytest {{ args.path }} {{ args.params }}
ci:
help: run the sames tests executed on CI
dependencies:
- target: tests.unit
- target: tests.linter
package:
targets:
build:
help: "Build the package"
run: |
poetry build
release:
vars:
app: |
npx --yes \
-p semantic-release \
-p "@semantic-release/commit-analyzer" \
-p "@semantic-release/release-notes-generator" \
-p "@semantic-release/changelog" \
-p "@semantic-release/exec" \
-p "@semantic-release/github" \
-p "@semantic-release/git" \
-p "@google/semantic-release-replace-plugin" \
semantic-release
targets:
ci:
help: run semantic release on CI
run: {{ vars.app }} --ci
dry:
help: run semantic release in dry-run mode
run: {{ vars.app }} --dry-run