Skip to content

docs: add Claude Code development notes and attribution #6

docs: add Claude Code development notes and attribution

docs: add Claude Code development notes and attribution #6

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install UV
run: |
curl -L --proto '=https' --tlsv1.2 -sSf https://github.com/astral-sh/uv/releases/latest/download/uv-installer.sh | sh
uv --version
- name: Install dependencies
run: |
uv pip install -e .
uv pip install pytest pytest-cov
- name: Run tests with coverage
run: |
pytest tests/ --cov=src/ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install UV
run: |
curl -L --proto '=https' --tlsv1.2 -sSf https://github.com/astral-sh/uv/releases/latest/download/uv-installer.sh | sh
uv --version
- name: Install dependencies
run: |
uv pip install -e .
uv pip install flake8 black isort
- name: Lint with flake8
run: |
flake8 src tests
- name: Check formatting with black
run: |
black --check src tests
- name: Check imports with isort
run: |
isort --check-only src tests