Fix all ruff lint errors for CI #4
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, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Run unit tests with coverage | |
| run: pytest tests/unit --cov=trusteval --cov-report=xml -v | |
| - name: Lint with ruff | |
| run: ruff check trusteval/ | |
| - name: Type check with mypy | |
| run: mypy trusteval/ --ignore-missing-imports | |
| - name: Security scan with bandit | |
| run: bandit -r trusteval/ -ll |