fix(evidence): correct two LLM-extracted claims found by the auditor … #11
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Lint, type-check, test (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # 3.9 matches requires-python / the environment this project is | |
| # actually developed against; 3.11 is checked too since several | |
| # newer stdlib/typing features are used and assumed compatible. | |
| python-version: ["3.9", "3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Lint (ruff check) | |
| run: ruff check src/ tests/ | |
| - name: Format check (ruff format) | |
| run: ruff format --check src/ tests/ | |
| - name: Type check (mypy) | |
| run: mypy src/verityai | |
| - name: Test with coverage | |
| run: pytest tests/ --cov=verityai --cov-report=term-missing --cov-report=xml --cov-fail-under=85 | |
| - name: Upload coverage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-${{ matrix.python-version }} | |
| path: coverage.xml | |
| retention-days: 14 | |
| docker: | |
| name: Docker build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build image | |
| run: docker build -t verityai:ci . | |
| - name: Smoke test the image | |
| run: | | |
| docker run -d --name verityai-ci-smoketest -p 18000:8000 verityai:ci | |
| for i in $(seq 1 15); do | |
| if curl -sf http://localhost:18000/health; then break; fi | |
| sleep 1 | |
| done | |
| curl -sf http://localhost:18000/health | |
| curl -sf -o /dev/null http://localhost:18000/dashboard | |
| docker logs verityai-ci-smoketest | |
| docker stop verityai-ci-smoketest |