-
-
Notifications
You must be signed in to change notification settings - Fork 179
/
Taskfile.yml
65 lines (54 loc) · 1.38 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
version: "3"
tasks:
install-pre-commit:
desc: Install pre-commit hooks
cmds:
- pip install pre-commit
- pre-commit install
sources:
- .pre-commit-config.yaml
install-package:
desc: Install the package
cmds:
- pip install -e .
sources:
- requirements.txt
- setup.py
install-test-deps:
desc: Install the dependencies for testing
cmds:
- pip install -r tests/requirements.txt
sources:
- tests/requirements.txt
lint:
desc: Run linting checks
deps:
- install-pre-commit
cmds:
- pre-commit run --all-files
test:
desc: Run all tests
deps:
- install-package
- install-test-deps
cmds:
- pytest
test-frontend:
cmds:
- task --parallel run-frontend test
run-frontend:
desc: Run the frontend for testing purposes
dir: streamlit_folium/frontend/
cmds:
- npm install
- npm run start
_run-streamlit: streamlit run examples/streamlit_app.py --server.port 8599 --server.headless true
_run-playwright: playwright codegen localhost:8599 --target=python-pytest
generate-tests:
desc: Generate tests for the frontend
cmds:
- task --parallel _run-streamlit _run-playwright
generate-tests-frontend:
desc: Generate tests for the frontend
cmds:
- task --parallel run-frontend _run-streamlit _run-playwright