Update GitHub Actions workflow for tests #48
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: | |
| quality: | |
| name: Lint / Type / Security / Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| - name: Ruff (lint) | |
| run: ruff check . | |
| - name: Mypy (static type check) | |
| run: mypy epistemic_forge | |
| - name: Bandit (security scan) | |
| run: bandit -r epistemic_forge -q --severity-level medium | |
| - name: Pytest (with coverage) | |
| run: pytest --cov=epistemic_forge --cov-report=term-missing --cov-fail-under=70 |