Skip to content

chore(deps): update actions/setup-python action to v6 #5

chore(deps): update actions/setup-python action to v6

chore(deps): update actions/setup-python action to v6 #5

Workflow file for this run

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