Skip to content

Release 1.0.10: Enhanced format detection, exception hierarchy, and d… #5

Release 1.0.10: Enhanced format detection, exception hierarchy, and d…

Release 1.0.10: Enhanced format detection, exception hierarchy, and d… #5

Workflow file for this run

name: Tests
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests with coverage
run: |
pytest --verbose --cov=iterable --cov-report=xml --cov-report=term
- name: Run linter
run: |
ruff check iterable tests
- name: Type check
run: |
mypy iterable || true # Allow failures for now, but run to catch issues
- name: Upload coverage reports
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false
flags: unittests