Skip to content

Commit c5797d8

Browse files
committed
chore(ci): update GitHub Actions workflow to install both dev and test dependencies for improved testing environment setup
1 parent 0b00c27 commit c5797d8

File tree

1 file changed

+38
-39
lines changed

1 file changed

+38
-39
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
21
name: Test
32

43
on:
54
push:
6-
branches: [ main ]
5+
branches: [main]
76
pull_request:
8-
branches: [ main ]
7+
branches: [main]
98

109
jobs:
1110
test:
@@ -15,39 +14,39 @@ jobs:
1514
python-version: ["3.11"]
1615

1716
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

0 commit comments

Comments
 (0)