Skip to content

chore: bug fixes, dead code removal, runtime warnings, staged strict … #68

chore: bug fixes, dead code removal, runtime warnings, staged strict …

chore: bug fixes, dead code removal, runtime warnings, staged strict … #68

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libhdf5-dev
- name: Install package
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e ".[dev]"
- name: Lint with flake8
run: |
# Syntax errors and undefined names (always fail)
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
# Style checks aligned with black (warn but don't fail for now)
flake8 src --count --max-line-length=88 --extend-ignore=E203,W503 --statistics --exit-zero
- name: Type check with mypy
run: |
mypy src/mneme --ignore-missing-imports || true
- name: Run tests with coverage
run: |
pytest tests -v --tb=short --cov=src/mneme --cov-report=term-missing --cov-report=xml
- name: Check coverage threshold
run: |
coverage report --fail-under=35