-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
77 lines (63 loc) · 1.83 KB
/
Copy pathTaskfile.yaml
File metadata and controls
77 lines (63 loc) · 1.83 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3"
vars:
VENV: .venv
PYTHON: '{{.VENV}}/bin/python'
RUFF: '{{.VENV}}/bin/ruff'
ALLURE_RESULTS: allure-results
ALLURE_REPORT: allure-report
tasks:
install:
desc: Install the project in editable mode (with test deps)
cmds:
- '{{.PYTHON}} -m pip install -e ".[test]"'
lint:
desc: Run ruff linter
cmds:
- '{{.RUFF}} check src/ tests/'
lint-fix:
desc: Run ruff with automatic fixes
cmds:
- '{{.RUFF}} check --fix src/ tests/'
format:
desc: Run ruff formatter
cmds:
- '{{.RUFF}} format src/ tests/'
test-full:
desc: Run all tests (with Allure results)
cmds:
- '{{.PYTHON}} -m pytest tests/ -v --tb=short --alluredir={{.ALLURE_RESULTS}}'
test-client:
desc: Run client tests only
cmds:
- '{{.PYTHON}} -m pytest tests/test_client.py -v --tb=short --alluredir={{.ALLURE_RESULTS}}'
test-embeddings:
desc: Run embedding tests only
cmds:
- '{{.PYTHON}} -m pytest tests/test_embeddings.py -v --tb=short --alluredir={{.ALLURE_RESULTS}}'
test-file:
desc: Run file processor tests only
cmds:
- '{{.PYTHON}} -m pytest tests/test_file_processor.py -v --tb=short --alluredir={{.ALLURE_RESULTS}}'
allure-report:
desc: Generate Allure report from existing results
cmds:
- npx allure generate {{.ALLURE_RESULTS}} -o {{.ALLURE_REPORT}}
allure-open:
desc: Open Allure report in browser
cmds:
- npx allure open {{.ALLURE_REPORT}}
allure-watch:
desc: Watch for results and live-update report
cmds:
- npx allure watch {{.ALLURE_RESULTS}}
allure-run:
desc: Run all tests and generate Allure report
cmds:
- task: test-full
- task: allure-report
ignore_error: true
check-all:
desc: Run lint and all tests
cmds:
- task: lint
- task: test-full