File tree Expand file tree Collapse file tree 1 file changed +76
-0
lines changed Expand file tree Collapse file tree 1 file changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ test :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Set up Python
14+ uses : actions/setup-python@v5
15+ with :
16+ python-version : " 3.11"
17+
18+ - name : Install uv
19+ run : |
20+ python -m pip install --upgrade pip
21+ pip install uv
22+
23+ - name : Install dev/test dependencies
24+ run : |
25+ pip install -e ".[dev]"
26+ pip install -e ".[test]"
27+
28+ - name : Run tests
29+ run : |
30+ uv run pytest
31+
32+ - name : Run ruff
33+ run : |
34+ uv run ruff check .
35+
36+ - name : Run black
37+ run : |
38+ uv run black . --check
39+
40+ - name : Run isort
41+ run : |
42+ uv run isort . --check-only
43+
44+ - name : Run mypy
45+ run : |
46+ uv run mypy mcp_shell_server tests
47+
48+ publish :
49+ needs : test
50+ runs-on : ubuntu-latest
51+ environment : release
52+ permissions :
53+ id-token : write
54+
55+ steps :
56+ - uses : actions/checkout@v4
57+
58+ - name : Set up Python
59+ uses : actions/setup-python@v5
60+ with :
61+ python-version : " 3.11"
62+
63+ - name : Install uv
64+ run : |
65+ python -m pip install --upgrade pip
66+ pip install uv
67+
68+ - name : Build package
69+ run : |
70+ uv build
71+
72+ - name : Publish to PyPI
73+ env :
74+ PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
75+ run : |
76+ uv publish --token $PYPI_TOKEN
You can’t perform that action at this time.
0 commit comments