Skip to content

Commit 5e286fe

Browse files
committed
feat(260403-qhw): add conda environment.yml and conda-test CI job
- Add environment.yml with Python 3.12 and pip editable install of .[dev,monitoring] - Add conda-test CI job using conda-incubator/setup-miniconda@v3 - All run steps use shell: bash -el {0} for proper conda environment activation - Job verifies module imports and runs unit tests under the conda environment
1 parent 45a4263 commit 5e286fe

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,27 @@ 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:
124+
needs: lint
125+
runs-on: ubuntu-latest
126+
steps:
127+
- uses: actions/checkout@v4
128+
- uses: conda-incubator/setup-miniconda@v3
129+
with:
130+
activate-environment: matlab-mcp
131+
environment-file: environment.yml
132+
auto-activate-base: false
133+
python-version: "3.12"
134+
- name: Verify all modules load
135+
shell: bash -el {0}
136+
run: |
137+
python -c "from matlab_mcp.server import main; print('OK: server')"
138+
python -c "from matlab_mcp.auth.middleware import BearerAuthMiddleware; print('OK: auth')"
139+
python -c "from matlab_mcp.hitl.gate import request_execute_approval; print('OK: hitl')"
140+
- name: Run unit tests
141+
shell: bash -el {0}
142+
run: pytest tests/ -v -k "not matlab" --ignore=tests/test_integration.py --ignore=tests/test_mcp_integration.py -W ignore::pytest.PytestUnraisableExceptionWarning
143+
123144
integration-test:
124145
needs: lint
125146
runs-on: ubuntu-latest

environment.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: matlab-mcp
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
- python=3.12
7+
- pip
8+
- pip:
9+
- -e ".[dev,monitoring]"

0 commit comments

Comments
 (0)