ci test updates #2
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: Code Quality | |
| on: | |
| push: | |
| branches: [ main, master, develop ] | |
| pull_request: | |
| branches: [ main, master, develop ] | |
| jobs: | |
| lint-and-type-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| uv pip install --system -e ".[dev]" | |
| uv pip install --system mypy ruff | |
| - name: Lint with ruff | |
| run: | | |
| ruff check permitcheck/ --output-format=github | |
| continue-on-error: true | |
| - name: Format check with ruff | |
| run: | | |
| ruff format --check permitcheck/ | |
| continue-on-error: true | |
| - name: Type check with mypy | |
| run: | | |
| mypy permitcheck/ --ignore-missing-imports --no-strict-optional | |
| continue-on-error: true | |
| - name: Check for security issues | |
| run: | | |
| uv pip install --system bandit | |
| bandit -r permitcheck/ -f json -o bandit-report.json || true | |
| continue-on-error: true | |
| - name: Upload reports | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: code-quality-reports | |
| path: | | |
| bandit-report.json |