Chore/ci consolidation #39
Workflow file for this run
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 – Quality Gate | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ "feature/**" ] | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install black isort bandit safety pytest pytest-asyncio pytest-cov | |
| - name: Lint | |
| run: | | |
| black --check app | |
| isort --check-only app | |
| - name: Security scan | |
| run: | | |
| bandit -r app -ll | |
| safety check -r requirements.txt || true | |
| - name: Run tests | |
| run: pytest -q --disable-warnings --maxfail=1 |