-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
38 lines (35 loc) · 1012 Bytes
/
Taskfile.yml
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
version: "3"
dotenv:
- .env
includes:
badges: tasks/badges.Taskfile.yml
hooks: tasks/hooks.Taskfile.yml
serve: tasks/serve.Taskfile.yml
tasks:
init:
desc: Init the package
cmds:
- poetry install
- pre-commit install
lock:
desc: Lock the dependencies as requirements.txt
cmds:
- poetry export --with dev --without-hashes -f requirements.txt --output requirements.txt
release:
desc: Simulate a new release locally
cmds:
- poetry run semantic-release version --print --no-vcs-release --no-push --skip-build --no-tag --no-changelog --no-commit
test:
desc: Run all tests
cmds:
- poetry run pytest tests/
env:
desc: Set environment variables
cmds:
- cat .env.{{.CLI_ARGS}} > .env && echo "Activate <{{.CLI_ARGS}}> environment variables"
mike:
desc: Deploy documentation
vars:
TAG: $(poetry version | grep -E -o "\d+\.\d+" | head -n 1)
cmds:
- mike deploy --push --update-aliases {{.TAG}} latest