Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ permissions:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 6 additions & 2 deletions src/greptimedb_mcp_server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,15 @@ def templates_loader() -> dict[str, dict[str, str]]:
category_path = os.path.join(template_dir, category)
if os.path.isdir(category_path):
# Load config
with open(os.path.join(category_path, "config.yaml"), "r") as f:
with open(
os.path.join(category_path, "config.yaml"), "r", encoding="utf-8"
) as f:
config = yaml.safe_load(f)

# Load template
with open(os.path.join(category_path, "template.md"), "r") as f:
with open(
os.path.join(category_path, "template.md"), "r", encoding="utf-8"
) as f:
template = f.read()

templates[category] = {"config": config, "template": template}
Expand Down
Loading