mirror of
https://github.com/dataforcanada/d4c-service-geo-assistant.git
synced 2026-06-13 22:41:01 +02:00
Add docs to download overture places data & ollama model (#13)
* Add docs to download overture places data & ollama model * Hit local overture parquet files * Add osx gitignore * Add .env.example * Make overture data source selectable using .env * Add pytest marker to set right ENV vars during CI --------- Co-authored-by: Daniel Wiesmann <yellowcap@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
16f39f908f
commit
be8affaa6c
@@ -1,8 +1,22 @@
|
||||
import os
|
||||
import pytest
|
||||
from langchain_core.tools.base import ToolCall
|
||||
|
||||
from geo_assistant.tools.overture import get_place
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def setup_ci_env():
|
||||
"""Configure S3 source for CI environments."""
|
||||
# Detect CI environment (GitHub Actions, GitLab CI, etc.)
|
||||
if os.getenv("CI") or os.getenv("GITHUB_ACTIONS"):
|
||||
os.environ["OVERTURE_SOURCE"] = "s3"
|
||||
os.environ["OVERTURE_S3_PATH"] = (
|
||||
"s3://overturemaps-us-west-2/release/2025-11-19.0/theme=places/type=place/*"
|
||||
)
|
||||
yield
|
||||
|
||||
|
||||
async def test_get_place():
|
||||
command = await get_place.ainvoke(
|
||||
ToolCall(
|
||||
|
||||
Reference in New Issue
Block a user