Skip to content

Commit df4cba6

Browse files
HanSur94claude
andcommitted
feat(ci): test both conda environments (PyPI + dev)
- conda-test-dev: environment-dev.yml (local source, runs unit tests) - conda-test-pypi: environment.yml (PyPI install, verifies server loads) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 234583c commit df4cba6

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
- run: pip install -e ".[dev,monitoring]"
121121
- run: pytest tests/ -v -k "not matlab" --ignore=tests/test_mcp_integration.py -W ignore::pytest.PytestUnraisableExceptionWarning
122122

123-
conda-test:
123+
conda-test-dev:
124124
needs: lint
125125
runs-on: ubuntu-latest
126126
steps:
@@ -141,6 +141,24 @@ jobs:
141141
shell: bash -el {0}
142142
run: pytest tests/ -v -k "not matlab" --ignore=tests/test_integration.py --ignore=tests/test_mcp_integration.py -W ignore::pytest.PytestUnraisableExceptionWarning
143143

144+
conda-test-pypi:
145+
needs: lint
146+
runs-on: ubuntu-latest
147+
steps:
148+
- uses: actions/checkout@v4
149+
- uses: conda-incubator/setup-miniconda@v3
150+
with:
151+
activate-environment: matlab-mcp
152+
environment-file: environment.yml
153+
auto-activate-base: false
154+
python-version: "3.12"
155+
- name: Verify server loads (PyPI install)
156+
shell: bash -el {0}
157+
run: |
158+
python -c "from matlab_mcp.server import main; print('OK: server')"
159+
python -c "from matlab_mcp.config import AppConfig; print('OK: config')"
160+
matlab-mcp --help
161+
144162
integration-test:
145163
needs: lint
146164
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)