-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTaskfile.yml
More file actions
179 lines (153 loc) · 5.91 KB
/
Copy pathTaskfile.yml
File metadata and controls
179 lines (153 loc) · 5.91 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# https://taskfile.dev
version: "3"
tasks:
default:
cmds:
- task -l
silent: true
# =============================================================================
# Per-package test tasks
# =============================================================================
test:oidm-common:
desc: "Test oidm-common package (no callouts)"
cmds:
- uv run --package oidm-common pytest packages/oidm-common/tests -rs -m "not callout" {{.CLI_ARGS}}
silent: true
test:oidm-common-full:
desc: "Test oidm-common package (with callouts)"
cmds:
- uv run --package oidm-common pytest packages/oidm-common/tests -rs {{.CLI_ARGS}}
silent: true
test:anatomic:
desc: "Test anatomic-locations package"
cmds:
- uv run --package anatomic-locations pytest packages/anatomic-locations/tests -rs {{.CLI_ARGS}}
silent: true
test:findingmodel:
desc: "Test findingmodel package (no callouts)"
cmds:
- uv run --package findingmodel pytest packages/findingmodel/tests -rs -m "not callout" {{.CLI_ARGS}}
silent: true
test:findingmodel-full:
desc: "Test findingmodel package (with callouts)"
cmds:
- uv run --package findingmodel pytest packages/findingmodel/tests -rs {{.CLI_ARGS}}
silent: true
test:findingmodel-ai:
desc: "Test findingmodel-ai package (no callouts)"
cmds:
- uv run --package findingmodel-ai pytest packages/findingmodel-ai/tests -rs -m "not callout" {{.CLI_ARGS}}
silent: true
test:findingmodel-ai-full:
desc: "Test findingmodel-ai package (with callouts)"
env:
PYDANTIC_ALLOW_MODEL_REQUESTS: "1"
cmds:
- uv run --package findingmodel-ai pytest packages/findingmodel-ai/tests -rs {{.CLI_ARGS}}
silent: true
test:maintenance:
desc: "Test oidm-maintenance package"
cmds:
- uv run --package oidm-maintenance pytest packages/oidm-maintenance/tests -rs {{.CLI_ARGS}}
silent: true
# =============================================================================
# Aggregate test tasks
# =============================================================================
test:
desc: "Test all packages (no callouts)"
cmds:
- echo "Testing all packages (excluding callouts)..."
- task: test:oidm-common
- task: test:anatomic
- task: test:findingmodel
- task: test:findingmodel-ai
- task: test:maintenance
silent: true
test-full:
desc: "Test all packages (with callouts)"
cmds:
- echo "Testing all packages (including callouts)..."
- task: test:oidm-common-full
- task: test:anatomic
- task: test:findingmodel-full
- task: test:findingmodel-ai-full
- task: test:maintenance
silent: true
evals:
desc: "Run all agent evaluation suites"
cmds:
- echo "Running all agent evaluations..."
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.model_editor
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.similar_models
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.ontology_match
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.anatomic_search
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.markdown_in
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.finding_description
silent: true
evals:model_editor:
desc: "Run model_editor evaluation suite"
cmds:
- echo "Running model_editor evaluations..."
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.model_editor
silent: true
evals:similar_models:
desc: "Run similar_models evaluation suite"
cmds:
- echo "Running similar_models evaluations..."
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.similar_models
silent: true
evals:ontology_match:
desc: "Run ontology_match evaluation suite"
cmds:
- echo "Running ontology_match evaluations..."
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.ontology_match
silent: true
evals:anatomic_search:
desc: "Run anatomic_search evaluation suite"
cmds:
- echo "Running anatomic_search evaluations..."
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.anatomic_search
silent: true
evals:markdown_in:
desc: "Run markdown_in evaluation suite"
cmds:
- echo "Running markdown_in evaluations..."
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.markdown_in
silent: true
evals:finding_description:
desc: "Run finding_description evaluation suite"
cmds:
- echo "Running finding_description evaluations..."
- PYTHONPATH=packages/findingmodel-ai uv run python -m evals.finding_description
silent: true
check:
desc: "Check all packages (format, lint, type-check)"
cmds:
- echo "Checking all packages..."
- uv run ruff format packages/
- uv run ruff check --fix packages/
- uv run mypy
silent: true
# =============================================================================
# Build and publish tasks
# =============================================================================
build:packages:
desc: "Build all publishable packages"
cmds:
- rm -rf dist/
- uv build --package oidm-common
- uv build --package findingmodel
- uv build --package anatomic-locations
- uv build --package findingmodel-ai
verify:install:
desc: "Build and verify packages install correctly in isolation"
cmds:
- uv run scripts/verify-install.py
publish:pypi:
desc: "Publish packages to PyPI (in dependency order)"
deps: [build:packages]
cmds:
- uv publish dist/oidm_common-*.tar.gz dist/oidm_common-*.whl
- uv publish dist/findingmodel-[0-9]*.tar.gz dist/findingmodel-[0-9]*.whl
- uv publish dist/anatomic_locations-*.tar.gz dist/anatomic_locations-*.whl
- uv publish dist/findingmodel_ai-*.tar.gz dist/findingmodel_ai-*.whl