Skip to content

Commit 9d59690

Browse files
HanSur94claude
andcommitted
fix(ci): exclude integration test from unit test jobs, add --no-cache-dir to install.bat
Integration test runs only in its dedicated job. Unit test jobs on Linux, macOS, and Windows now ignore test_mcp_integration.py. Windows install.bat uses --no-cache-dir to prevent stale wheel cache. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ee57df3 commit 9d59690

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131
- run: pip install -e ".[dev,monitoring]"
32-
- run: pytest tests/ -v --cov=matlab_mcp --cov-report=xml --cov-report=term-missing
32+
- run: pytest tests/ -v --ignore=tests/test_mcp_integration.py --cov=matlab_mcp --cov-report=xml --cov-report=term-missing
3333
- uses: codecov/codecov-action@v4
3434
if: matrix.python-version == '3.12'
3535
with:
@@ -97,7 +97,7 @@ jobs:
9797
run: |
9898
call .venv\Scripts\activate.bat
9999
pip install pytest pytest-asyncio pytest-cov --quiet
100-
pytest tests/ -v -k "not matlab" --ignore=tests/test_integration.py -W ignore::pytest.PytestUnraisableExceptionWarning
100+
pytest tests/ -v -k "not matlab" --ignore=tests/test_integration.py --ignore=tests/test_mcp_integration.py -W ignore::pytest.PytestUnraisableExceptionWarning
101101
102102
test-macos:
103103
needs: lint
@@ -112,7 +112,7 @@ jobs:
112112
with:
113113
python-version: ${{ matrix.python-version }}
114114
- run: pip install -e ".[dev,monitoring]"
115-
- run: pytest tests/ -v -k "not matlab" -W ignore::pytest.PytestUnraisableExceptionWarning
115+
- run: pytest tests/ -v -k "not matlab" --ignore=tests/test_mcp_integration.py -W ignore::pytest.PytestUnraisableExceptionWarning
116116

117117
integration-test:
118118
needs: lint

install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ if defined OFFLINE (
315315
) else (
316316
if exist "%SOURCE_DIR%pyproject.toml" (
317317
echo Installing from local source...
318-
pip install "%SOURCE_DIR%." %PIP_TRUST% --quiet
318+
pip install "%SOURCE_DIR%." %PIP_TRUST% --no-cache-dir --quiet
319319
) else (
320320
echo Installing from PyPI...
321321
pip install matlab-mcp-python %PIP_TRUST% --quiet

0 commit comments

Comments
 (0)