-
-
Notifications
You must be signed in to change notification settings - Fork 224
Expand file tree
/
Copy pathTaskfile.yml
More file actions
62 lines (52 loc) · 1.34 KB
/
Copy pathTaskfile.yml
File metadata and controls
62 lines (52 loc) · 1.34 KB
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
version: "3"
tasks:
setup:
desc: Setup development environment
cmds:
- uv sync --group dev --group test
- uv run pre-commit install
sources:
- pyproject.toml
- uv.lock
- .pre-commit-config.yaml
lint:
desc: Run linting checks
cmds:
- uv run pre-commit run --all-files
test:
desc: Run all tests
cmds:
- uv sync --group test
- uv run playwright install --with-deps
- uv run pytest
build:
desc: Build the package
cmds:
- cd streamlit_folium/frontend/ && npm install && npm run build
- uv build
run-frontend:
desc: Run the frontend for development
dir: streamlit_folium/frontend/
cmds:
- npm install
- npm run start
test-frontend:
desc: Run frontend and tests in parallel
cmds:
- task --parallel run-frontend test
run-streamlit:
desc: Run streamlit example app
cmds:
- uv run streamlit run examples/streamlit_app.py
generate-tests:
desc: Generate playwright tests
cmds:
- task --parallel _run-streamlit _run-playwright
_run-streamlit:
internal: true
cmds:
- uv run streamlit run examples/streamlit_app.py --server.port 8599 --server.headless true
_run-playwright:
internal: true
cmds:
- uv run playwright codegen localhost:8599 --target=python-pytest