-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
60 lines (49 loc) · 1.07 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "3"
tasks:
setup-poetry:
run: once
status:
- command -v poetry
cmds:
- python3 -m pip install poetry
setup:
run: once
cmds:
- poetry install
lint-flake8:
deps: [setup]
cmds:
- poetry run flake8
lint-mypy:
deps: [setup]
cmds:
- poetry run mypy slacktoken tests
lint-poetry-lock:
cmds:
- poetry lock --check
lint-pyproject:
cmds:
- poetry check
test-pytest:
deps: [setup]
cmds:
- poetry run pytest
ci:
deps:
- lint-flake8
- lint-mypy
# - lint-poetry-lock # This can't be enabled until Poetry 1.2.0 is released, which includes support for checking the lock file.
- lint-pyproject
- test-pytest
build:
cmds:
- poetry build
publish:
vars:
VERSION:
sh: git describe --tags --abbrev=0
cmds:
- defer: poetry version 0.0.0
- poetry version {{shellQuote .VERSION}}
- task: build
- poetry publish --no-interaction --username __token__ --password {{shellQuote .PYPI_TOKEN}}