File tree Expand file tree Collapse file tree 2 files changed +55
-1
lines changed Expand file tree Collapse file tree 2 files changed +55
-1
lines changed Original file line number Diff line number Diff line change 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  
Original file line number Diff line number Diff line change 11[project ]
22name  = " mcp-adb" 
33version  = " 0.1.0" 
4- description  = " Add your description here " 
4+ description  = " An MCP server for Android automation using UIAutomator2 " 
55readme  = " README.md" 
66requires-python  = " >=3.13" 
77dependencies  = [
@@ -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 ]
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments