-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
92 lines (81 loc) · 2.04 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3'
dotenv: [ ".env" ]
tasks:
uv:
cmds:
- uv {{.CLI_ARGS}}
publish:
cmds:
- uv publish --token {{PYPI_TOKEN}}
run:
cmds:
- uv streamlit run tests/examples.py
requirements:
cmds:
- uv pip compile pyproject.toml -o requirements.txt
setup-dev:
desc: Install development dependencies
cmds:
- uv add --dev pytest pytest-cov pytest-playwright psutil
- uv add streamlit
- playwright install chromium
test:
desc: Run unit tests
deps: [setup-dev]
cmds:
- pytest tests/test_st_tailwind.py -v
test-e2e:
desc: Run end-to-end tests
deps: [setup-dev]
cmds:
- pytest tests/e2e -v
coverage:
desc: Run tests with coverage report
deps: [setup-dev]
cmds:
- pytest --cov=st_tailwind --cov-report=html --cov-report=term-missing
codegen-basic:
desc: Run Playwright codegen for basic components example
cmds:
- cmd.exe /c "start streamlit run tests/basic_components_example.py"
- cmd.exe /c "timeout /t 5"
- playwright codegen http://localhost:8501
codegen-kpi:
desc: Run Playwright codegen for KPI dashboard example
cmds:
- cmd.exe /c "start streamlit run tests/kpi_dashboard_example.py"
- cmd.exe /c "timeout /t 5"
- playwright codegen http://localhost:8501
build:
desc: Build the package
cmds:
- uv pip install build
- python -m build
install:
desc: Install the package in development mode
cmds:
- uv pip install -e .
install-dev:
desc: Install development dependencies
cmds:
- uv pip install -e ".[dev]"
coverage:
desc: Run tests with coverage
cmds:
- uv pip install pytest pytest-cov
- pytest --cov=st_tailwind tests/
test:
desc: Run tests
cmds:
- pytest tests/
test-e2e:
desc: Run end-to-end tests
cmds:
- pytest tests/e2e/test_examples.py -v
publish:
desc: Publish to PyPI
cmds:
- uv pip install twine
- twine upload dist/*
env:
TWINE_USERNAME: __token__