fix(security): valida JWT ES256 (EC) además de RS256 vía PyJWK (#56) #90
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: Backend CI | |
| on: | |
| pull_request: | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - "scripts/**" | |
| - "requirements.txt" | |
| - "db/**" | |
| - ".github/workflows/backend-ci.yml" | |
| push: | |
| branches: [main, master] | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - "scripts/**" | |
| - "requirements.txt" | |
| - ".github/workflows/backend-ci.yml" | |
| concurrency: | |
| group: backend-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Pytest (unit) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| cache: pip | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Run unit tests | |
| run: python -m pytest -m "not integration" --cov=src --cov-report=term-missing --cov-fail-under=67 -q | |
| - name: AI eval (golden de triaje) | |
| run: python scripts/eval_ai.py --min-accuracy 0.8 |