docs: add v22 feature coverage axes for council maturity 100/100 #29
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: Main CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| - name: Lint with ruff | |
| run: | | |
| pip install ruff | |
| ruff check zero_api_key_web_search/ tests/ | |
| - name: Type check with pyright | |
| run: | | |
| pip install pyright | |
| pyright zero_api_key_web_search/ | |
| - name: Run unit tests with coverage | |
| run: | | |
| pip install coverage | |
| coverage run -m unittest discover -s tests -v | |
| coverage report --fail-under=80 --include="zero_api_key_web_search/*" | |
| - name: Run benchmark regression | |
| run: | | |
| python benchmarks/run_benchmark.py --json > /tmp/benchmark.json | |
| python -c "import json; payload=json.load(open('/tmp/benchmark.json', 'r', encoding='utf-8')); assert payload['failed'] == 0; assert payload['total'] >= 3" | |
| - name: Build package | |
| run: | | |
| python -m build | |
| twine check dist/* | |
| - name: Smoke installed wheel | |
| run: | | |
| python -m venv /tmp/cvs-wheel | |
| /tmp/cvs-wheel/bin/pip install --upgrade pip | |
| /tmp/cvs-wheel/bin/pip install dist/*.whl | |
| /tmp/cvs-wheel/bin/zero-search --help | |
| /tmp/cvs-wheel/bin/zero-browse --help | |
| /tmp/cvs-wheel/bin/zero-verify --help | |
| /tmp/cvs-wheel/bin/zero-report --help | |
| test -x /tmp/cvs-wheel/bin/zero-mcp | |
| test -x /tmp/cvs-wheel/bin/cross-validated-search-mcp | |
| test -x /tmp/cvs-wheel/bin/free-web-search-mcp |