Add common dir #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MCP Common Tests | |
on: | |
push: | |
branches: [ main, master ] | |
paths: | |
- 'servers/common/**' | |
pull_request: | |
branches: [ main, master ] | |
paths: | |
- 'servers/common/**' | |
workflow_dispatch: # Allows manual triggering of the workflow | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install UV | |
run: | | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH | |
- name: Install dependencies | |
run: | | |
cd servers/common | |
uv venv | |
uv pip install -e ".[dev]" | |
- name: Check format and linting | |
run: | | |
cd servers/common | |
./format.sh | |
- name: Run tests | |
run: | | |
cd servers/common | |
./test.sh |