All checks were successful
CI / lint-and-test (push) Successful in 16s
- Modified the CI configuration in `ci.yml` to change the linting command from checking the entire `src` directory to specifically targeting the `duty_teller` package and `tests`. - This change enhances the accuracy of linting by focusing on relevant code areas, improving code quality checks during the CI process.
42 lines
901 B
YAML
42 lines
901 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
pull_request:
|
|
branches: [main, develop]
|
|
|
|
jobs:
|
|
lint-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://gitea.com/actions/checkout@v4
|
|
|
|
- name: Set up Python 3.12
|
|
uses: https://gitea.com/actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -r requirements.txt -r requirements-dev.txt
|
|
|
|
- name: Install lint and security tools
|
|
run: |
|
|
pip install ruff bandit
|
|
|
|
- name: Lint with Ruff
|
|
run: |
|
|
ruff check duty_teller tests
|
|
|
|
- name: Run tests
|
|
env:
|
|
PYTHONPATH: src
|
|
run: |
|
|
pytest tests/ -v
|
|
|
|
- name: Security check with Bandit
|
|
run: |
|
|
bandit -r src -ll
|