more more fixes #98
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: Test | |
| on: | |
| push: | |
| branches: ['main', 'main_deprecated', 'phase_*', 'feature'] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [macos-latest, windows-latest] | |
| python-version: ['3.11'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -r requirements-dev.txt | |
| - name: Run linter | |
| run: | | |
| pylint src/ --disable=all --enable=errors || true | |
| mypy src/ --ignore-missing-imports || true | |
| - name: Security – dependency audit (Design 4.82, 4.133) | |
| run: | | |
| pip install pip-audit | |
| pip-audit -r requirements.txt -r requirements-dev.txt || true | |
| - name: Security – static analysis (Design 4.133) | |
| run: | | |
| pip install bandit | |
| bandit -r src -ll -x src/tests || true | |
| - name: Run tests (unit, integration, system) | |
| run: | | |
| python scripts/run_tests.py --all --coverage --no-slow | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| files: ./coverage.xml | |
| fail_ci_if_error: false | |
| - name: Check for large files | |
| run: | | |
| python scripts/check_large_files.py |