-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathTaskfile.yml
77 lines (61 loc) · 1.64 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '2'
tasks:
install:
cmds:
- poetry install -E pandas
publish:
cmds:
- poetry publish --build -u __token__ -p ${PYPI_TOKEN}
black:
cmds:
- poetry run black simple_smartsheet examples tests
black-check:
cmds:
- poetry run black --check simple_smartsheet examples tests
flake8:
cmds:
- poetry run flake8 simple_smartsheet examples tests
mypy:
cmds:
- poetry run mypy simple_smartsheet
test-precheck:
cmds:
- task: black-check
- task: flake8
- task: mypy
pytest-prod:
cmds:
- poetry run pytest tests/prod -rf
pytest-local:
cmds:
- poetry run pytest tests/sandbox --record-mode=none --block-network -rf
# new_episodes does not work as expected and async tests just crash
# pytest-record-new:
# cmds:
# - poetry run pytest tests/sandbox --record-mode=new_episodes -rf
pytest-rerecord:
cmds:
- poetry run pytest tests/sandbox --record-mode=all --delete-cassettes -rf
pytest-novcr:
cmds:
- poetry run pytest tests/sandbox --disable-vcr -rf
examples:
cmds:
- poetry run python -Werror examples/sheets.py > /dev/null
- poetry run python -Werror examples/report.py > /dev/null
- poetry run python -Werror examples/custom_indexes.py > /dev/null
- poetry run python -Werror examples/async.py > /dev/null
tests-local:
cmds:
- task: test-precheck
- task: pytest-local
tests:
cmds:
- task: test-precheck
- task: pytest-local
- task: examples
tests-novcr:
cmds:
- task: test-precheck
- task: pytest-novcr
- task: examples