From b25101d1443cc044ee1dbc743e18546cfb44e0f4 Mon Sep 17 00:00:00 2001 From: githejie Date: Fri, 28 Mar 2025 15:14:43 +0800 Subject: [PATCH] Add github CI workflows --- .github/workflows/CI.yml | 34 ++++++++++++++++++++++++++++++++++ uv.lock | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..dcf5caf --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version-file: .python-version + + - name: Install uv + uses: astral-sh/setup-uv@v3 + + - name: Install dependencies + run: uv sync + + - name: Build package + run: uv build + + - name: Run tests + run: uv run python -m unittest discover -s tests diff --git a/uv.lock b/uv.lock index 4f85e2e..4edae81 100644 --- a/uv.lock +++ b/uv.lock @@ -141,7 +141,7 @@ wheels = [ [[package]] name = "mcp-server-calculator" -version = "0.1.0" +version = "0.1.1" source = { editable = "." } dependencies = [ { name = "mcp" },