name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.13]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
env:
PIP_PROGRESS_BAR: off
run: |
python -m pip install --upgrade pip -q
python -m pip install uv -q
uv pip install --system -e ".[dev]" --quiet
python -m pip install flake8 -q
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings (quiet: only violations, no per-file stats)
flake8 . --count --exit-zero --max-complexity=10 --quiet
- name: Test with unittest
run: |
python -m unittest discover -s test -p "unit*.py"