File tree Expand file tree Collapse file tree 1 file changed +38
-39
lines changed Expand file tree Collapse file tree 1 file changed +38
-39
lines changed Original file line number Diff line number Diff line change 1
-
2
1
name : Test
3
2
4
3
on :
5
4
push :
6
- branches : [ main ]
5
+ branches : [main]
7
6
pull_request :
8
- branches : [ main ]
7
+ branches : [main]
9
8
10
9
jobs :
11
10
test :
@@ -15,39 +14,39 @@ jobs:
15
14
python-version : ["3.11"]
16
15
17
16
steps :
18
- - uses : actions/checkout@v4
19
-
20
- - name : Set up Python ${{ matrix.python-version }}
21
- uses : actions/setup-python@v5
22
- with :
23
- python-version : ${{ matrix.python-version }}
24
-
25
- - name : Install uv
26
- run : |
27
- python -m pip install --upgrade pip
28
- pip install uv
29
-
30
- - name : Install test dependencies
31
- run : |
32
- uv install --category test
33
-
34
- - name : Run tests
35
- run : |
36
- uv run pytest
37
-
38
- - name : Run ruff
39
- run : |
40
- uv run ruff .
41
-
42
- - name : Run black
43
- run : |
44
- uv run black . --check
45
-
46
- - name : Run isort
47
- run : |
48
- uv run isort . --check-only
49
-
50
- - name : Run mypy
51
- run : |
52
- uv run mypy mcp_shell_server tests
53
-
17
+ - uses : actions/checkout@v4
18
+
19
+ - name : Set up Python ${{ matrix.python-version }}
20
+ uses : actions/setup-python@v5
21
+ with :
22
+ python-version : ${{ matrix.python-version }}
23
+
24
+ - name : Install uv
25
+ run : |
26
+ python -m pip install --upgrade pip
27
+ pip install uv
28
+
29
+ - name : Install dev/ test dependencies
30
+ run : |
31
+ pip install -e ".[dev]"
32
+ pip install -e ".[test]"
33
+
34
+ - name : Run tests
35
+ run : |
36
+ uv run pytest
37
+
38
+ - name : Run ruff
39
+ run : |
40
+ uv run ruff .
41
+
42
+ - name : Run black
43
+ run : |
44
+ uv run black . --check
45
+
46
+ - name : Run isort
47
+ run : |
48
+ uv run isort . --check-only
49
+
50
+ - name : Run mypy
51
+ run : |
52
+ uv run mypy mcp_shell_server tests
You can’t perform that action at this time.
0 commit comments