build(deps): bump click from 8.3.3 to 8.4.1 (#39) #505
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| - name: Install ruff | |
| run: pip install -q ruff | |
| - name: Ruff check | |
| run: ruff check app/ | |
| - name: Ruff format check | |
| run: ruff format --check app/ | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| - name: Audit dependencies | |
| run: pip install -q pip-audit && pip-audit -r requirements.txt | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: [lint, security] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: pip install -q -r requirements.txt | |
| - name: Run tests | |
| env: | |
| CONTRASTAPI_DB: /tmp/ci_api.db | |
| CONTRASTAPI_CVE_DB: /tmp/ci_cve.db | |
| CONTRASTAPI_CACHE_DB: /tmp/ci_cache.db | |
| run: cd app && python -m pytest tests/ -v --tb=short |