chore(deps): update actions/setup-python action to v6 #5
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: Python CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'python/**' | |
| - '.github/workflows/python-ci.yml' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'python/**' | |
| - '.github/workflows/python-ci.yml' | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: python | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pytest pytest-cov ruff bandit | |
| - name: Lint with ruff | |
| run: ruff check . | |
| - name: Security scan with bandit | |
| run: bandit -r tools/ -ll -q --skip B501,B113 | |
| - name: Run tests with coverage | |
| run: pytest tests/ -v --tb=short --cov=tools --cov-report=term-missing --cov-fail-under=50 |