diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 5c6ca92..b98b4e5 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -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 diff --git a/src/greptimedb_mcp_server/utils.py b/src/greptimedb_mcp_server/utils.py index b3d9e36..cf30e61 100644 --- a/src/greptimedb_mcp_server/utils.py +++ b/src/greptimedb_mcp_server/utils.py @@ -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}