This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Create an external server plugin example that does tool arg checking using Nemo Check guardrails server #25
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: CI | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the "main" branch | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| # Sets up a specific version of Python | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pre-commit uv | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Run pre-commit hooks | |
| run: | | |
| echo "Running pre-commit hooks..." | |
| pre-commit run --all-files --verbose || { | |
| echo "❌ Pre-commit hooks failed!" | |
| echo "" | |
| echo "Files modified by hooks:" | |
| git diff --name-only | |
| echo "" | |
| echo "Detailed changes:" | |
| git diff --stat | |
| exit 1 | |
| } | |
| - name: Install nemocheck external plugin dependencies | |
| working-directory: ./plugins/examples/nemocheck | |
| run: | | |
| echo "Running nemocheck ext plugin tests.." | |
| uv sync --all-groups | |
| - name: Run nemocheck external plugin tests | |
| working-directory: ./plugins/examples/nemocheck | |
| run: pytest tests | |
| # - name: Test |