Repository navigation
ci: verify Fetch installations and clarify benchmark usage #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
34255cf
docs: align onboarding, versions and project references
lanyue-llk 20e9646
feat(benchmarks): consolidate Fetch and Search in one workspace
lanyue-llk 4b8de9c
docs: describe the retrieval family without migration narration
lanyue-llk 6e945f3
test(packaging): verify each benchmark installs independently
lanyue-llk b19a2b0
fix: honor CI interpreters and numeric answer boundaries
lanyue-llk c931e3b
fix(search): validate numeric boundaries within literal phrases
lanyue-llk 45772fc
fix(search): share quantity rules with range prefixes
lanyue-llk 7b37e21
fix(search): retain internal quantity operators
lanyue-llk e71d4fd
fix(search): share leading quantity operator checks
lanyue-llk 9e753fd
fix(search): preserve quantity grouping at operator boundaries
lanyue-llk 6e7ddc8
fix(search): retain unit modifiers outside quantity groups
lanyue-llk 96286dc
fix(search): normalize equivalent quantity operator glyphs
lanyue-llk e9b0036
docs: design a single SDK with independent benchmark topics
lanyue-llk a352e2a
refactor: restore the standalone Fetch repository
lanyue-llk a02704f
docs: distinguish Fetch and Search benchmark tag formats
lanyue-llk 06ab0da
ci: run automated checks only on Python 3.11
lanyue-llk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,24 @@ | ||
| .PHONY: check | ||
| check: | ||
| uv run --frozen lexbench-webfetch validate | ||
| uv run --frozen --extra test python -m pytest tests -q | ||
| UV ?= uv | ||
| BENCH_PYTHON ?= $(shell cat .python-version) | ||
| PY := $(UV) run --frozen --extra test --python "$(BENCH_PYTHON)" python | ||
|
|
||
| .PHONY: check test package-check | ||
| check: test | ||
| $(PY) -m lexbench_webfetch.cli validate | ||
|
|
||
| test: | ||
| $(PY) -m pytest tests -q | ||
|
|
||
| package-check: | ||
| @set -eu; \ | ||
| dist="$$(mktemp -d)"; run="$$(mktemp -d)"; \ | ||
| trap 'rm -rf "$$dist" "$$run"' EXIT; \ | ||
| $(UV) build --sdist --python "$(BENCH_PYTHON)" --out-dir "$$dist"; \ | ||
| for source in "$$dist"/*.tar.gz; do $(UV) build "$$source" --wheel --python "$(BENCH_PYTHON)" --out-dir "$$dist"; done; \ | ||
| $(UV) venv --python "$(BENCH_PYTHON)" "$$run/venv"; \ | ||
| set -- "$$dist"/lexbench_webfetch-*.whl; \ | ||
| $(UV) pip install --python "$$run/venv/bin/python" "$${1}[test]"; \ | ||
| cp -R tests "$$run/tests"; \ | ||
| cd "$$run"; \ | ||
| $(UV) run --no-project --no-sync --python "$$run/venv/bin/python" python -m pytest tests -q; \ | ||
| "$$run/venv/bin/lexbench-webfetch" validate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.