-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (51 loc) · 1.71 KB
/
test.yml
File metadata and controls
62 lines (51 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Test Suite
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov pytest-asyncio ruff mypy bandit build psutil
pip install -e .
- name: Lint with ruff (non-blocking)
continue-on-error: true
run: |
ruff check src/ --output-format=github || true
- name: Type check with mypy
run: |
echo "⏭️ Skipping mypy type checks for v0.8 MVP release"
# mypy src/ --ignore-missing-imports
- name: Security scan with bandit
run: |
bandit -r src/ -f json -o bandit-report.json || true
- name: Test with pytest
run: |
pytest tests/test_v0_8_basic.py -v --cov=src/mujoco_mcp --cov-report=xml --cov-report=term-missing --ignore=tests/conftest.py
- name: Test package installation
run: |
python -m build
pip install dist/*.whl
mujoco-mcp --version
mujoco-mcp --check
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella