Skip to content

Add MCP inference workflow example for OAI #28

Add MCP inference workflow example for OAI

Add MCP inference workflow example for OAI #28

Workflow file for this run

name: Test
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false # Don't cancel entire run if one python-version fails
matrix:
python-version: ["3.10"]
name: Run tests on Python ${{ matrix.python-version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install core and dev dependencies
run: |
pip install --upgrade pip
pip install -e .[dev]
- name: Run pre-commit checks
run: |
pre-commit run --all-files --color always
- name: Create test-reports directory
run: mkdir -p test-reports
- name: Run core unit tests with coverage
run: |
coverage run --source=fuse --omit="*/__init__.py,*/tests/*" run_all_unit_tests.py core
coverage xml
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.xml
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: junit-test-results
path: test-reports/