Skip to content

Commit f5bbcbd

Browse files
committed
Update project description in pyproject.toml and add CI workflow for linting and testing
1 parent 9f2c007 commit f5bbcbd

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
jobs:
2+
lint:
3+
name: Lint & Format Check
4+
runs-on: ubuntu-latest
5+
steps:
6+
- name: Checkout code
7+
uses: actions/checkout@v4
8+
9+
- name: Set up Python 3.13
10+
uses: actions/setup-python@v5
11+
with:
12+
python-version: "3.13"
13+
14+
- name: Install uv
15+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
16+
# Add uv to the PATH
17+
- name: Add uv to PATH
18+
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
19+
20+
- name: Install dependencies (including dev)
21+
run: uv pip install --system -e '.[test,dev]' # Need dev for ruff
22+
23+
- name: Lint with Ruff
24+
run: uv run ruff check .
25+
26+
- name: Check formatting with Ruff
27+
run: uv run ruff format --check .
28+
29+
test:
30+
name: Run Tests
31+
runs-on: ubuntu-latest
32+
needs: lint # Ensure linting passes before testing
33+
steps:
34+
- name: Checkout code
35+
uses: actions/checkout@v4
36+
37+
- name: Set up Python 3.13
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: "3.13"
41+
42+
- name: Install uv
43+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
44+
# Add uv to the PATH
45+
- name: Add uv to PATH
46+
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
47+
48+
49+
- name: Install dependencies (including test)
50+
run: uv pip install --system .
51+
52+
- name: Run tests with pytest
53+
run: uv run pytest -v

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "mcp-adb"
33
version = "0.1.0"
4-
description = "Add your description here"
4+
description = "An MCP server for Android automation using UIAutomator2"
55
readme = "README.md"
66
requires-python = ">=3.13"
77
dependencies = [
@@ -11,6 +11,7 @@ dependencies = [
1111
"uiautomator2>=3.2.9",
1212
"python-multipart>=0.0.9", # Already added
1313
# "starlette>=0.38.0", # This caused conflicts, so we revert this change
14+
"ruff>=0.11.8",
1415
]
1516

1617
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)