Add MCP inference workflow example for OAI #1212
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: [pull_request] | |
| jobs: | |
| black: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: psf/black@stable | |
| with: | |
| options: "--check --verbose --diff --color" | |
| src: "." | |
| version: "22.3.0" | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.9" | |
| - name: Install dependencies | |
| run: pip install ruff | |
| - name: Run Ruff | |
| run: ruff check . | |
| mypy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.9" | |
| - run: pip install --upgrade pip | |
| - run: pip install mypy==0.950 | |
| - run: python -m mypy . --show-error-codes | |
| nb-clean: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.9" | |
| - run: pip install --upgrade pip | |
| - run: pip install nb-clean | |
| - run: nb-clean check . |