97e91a83f3
Ruff / Ruff (push) Has been cancelled
Test / Core Tests (push) Has been cancelled
Test / Offline Coverage Tests (Python 3.10) (push) Has been cancelled
Test / Offline Coverage Tests (Python 3.11) (push) Has been cancelled
Test / Offline Coverage Tests (Python 3.12) (push) Has been cancelled
Test / Offline Coverage Tests (Python 3.13) (push) Has been cancelled
Test / Offline Coverage Tests (Python 3.9) (push) Has been cancelled
Test / Full Coverage (Python 3.11) (push) Has been cancelled
Test / Core Provider Tests (OpenAI) (push) Has been cancelled
Test / Core Provider Tests (Anthropic) (push) Has been cancelled
Test / Core Provider Tests (Google) (push) Has been cancelled
Test / Core Provider Tests (Other) (push) Has been cancelled
Test / Anthropic Tests (push) Has been cancelled
Test / Gemini Tests (push) Has been cancelled
Test / Google GenAI Tests (push) Has been cancelled
Test / Vertex AI Tests (push) Has been cancelled
Test / OpenAI Tests (push) Has been cancelled
Test / Writer Tests (push) Has been cancelled
Test / Auto Client Tests (push) Has been cancelled
ty / type-check (push) Has been cancelled
25 lines
956 B
Bash
Executable File
25 lines
956 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
repo_root="$(git rev-parse --show-toplevel)"
|
|
tmp_dir="$(mktemp -d)"
|
|
|
|
uv build --default-index https://pypi.org/simple --wheel \
|
|
--out-dir "$tmp_dir/dist" "$repo_root"
|
|
|
|
wheels=("$tmp_dir"/dist/*.whl)
|
|
uv venv "$tmp_dir/.venv"
|
|
uv pip install --default-index https://pypi.org/simple \
|
|
--python "$tmp_dir/.venv/bin/python" \
|
|
"${wheels[0]}" "ty==0.0.44" typing_extensions
|
|
|
|
VIRTUAL_ENV="$tmp_dir/.venv" "$tmp_dir/.venv/bin/python" -c \
|
|
'from importlib.util import find_spec; from pathlib import Path; spec = find_spec("instructor"); assert spec is not None and spec.submodule_search_locations is not None; assert (Path(next(iter(spec.submodule_search_locations))) / "py.typed").is_file()'
|
|
|
|
cp "$repo_root/tests/typing/test_installed_package.py" "$tmp_dir/test_installed_package.py"
|
|
|
|
cd "$tmp_dir"
|
|
VIRTUAL_ENV="$tmp_dir/.venv" "$tmp_dir/.venv/bin/ty" check \
|
|
--error-on-warning test_installed_package.py
|