Skip to content
Closed
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
39 changes: 39 additions & 0 deletions .github/workflows/publish-py-kv-store-adapter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Strawgate ESQL Tools MCP to PyPI

on:
release:
types: [created]
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
environment: pypi

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: "Install uv"
uses: astral-sh/setup-uv@v6

- name: "Install"
run: uv sync --locked --group dev

- name: "Test"
run: uv run pytest tests

- name: "Build"
run: uv build

- name: "Publish to PyPi"
if: github.event_name == 'release' && github.event.action == 'created'
run: uv publish -v dist/*
41 changes: 41 additions & 0 deletions .github/workflows/test_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish Strawgate ESQL Tools MCP to PyPI

on:
release:
types: [created]
pull_request:
branches:
- main
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
environment: pypi

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: "Install uv"
uses: astral-sh/setup-uv@v6

- name: "Install"
run: uv sync --locked --group dev

- name: "Lint"
run: uv run ruff check --exit-non-zero-on-fix --fix

- name: "Type Check"
run: uv run basedpyright

- name: "Format"
run: uv run ruff format

- name: "Test"
run: uv run pytest tests

- name: "Build"
run: uv build
31 changes: 31 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},{
"name": "Python: Debug Tests",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"purpose": [
"debug-test"
],
"args": [
"-vv",
"-s" // Disable Captures
],
"console": "integratedTerminal",
"justMyCode": false,
"envFile": "${workspaceFolder}/.env"
}
]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
Loading
Loading