Skip to content

Commit e45d947

Browse files
committed
Unit test mcp server
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
1 parent 6c53e5e commit e45d947

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
java-version: '21'
3838
- name: Install dependencies
3939
run: |
40-
python -m pip install --upgrade pip
4140
uv sync --all-extras --dev
4241
- name: Build
4342
run: |
@@ -60,14 +59,26 @@ jobs:
6059
env:
6160
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6261

63-
container:
62+
mcp-container:
6463
runs-on: ubuntu-latest
6564
permissions:
6665
contents: write
6766
packages: write
6867
id-token: write
6968
steps:
7069
- uses: actions/checkout@v4
70+
- name: Install uv
71+
uses: astral-sh/setup-uv@v5
72+
- name: Set up Python
73+
uses: actions/setup-python@v5
74+
with:
75+
python-version: '3.12'
76+
- name: Install dependencies
77+
run: |
78+
cd packages/mcp-server-vdb
79+
uv sync --all-extras --dev
80+
uv run pytest
81+
rm -rf .venv .coverage
7182
- name: Set up QEMU
7283
uses: docker/setup-qemu-action@v3
7384
- name: Set up Docker Buildx

0 commit comments

Comments
 (0)