Skip to content

Merge pull request #1 from KN-Neuron/development #1

Merge pull request #1 from KN-Neuron/development

Merge pull request #1 from KN-Neuron/development #1

Workflow file for this run

name: Python CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.13]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -e ".[dev]"
- name: Check code formatting with Black
run: |
black --check src/ tests/
- name: Lint with Flake8
run: |
flake8 src/ tests/
- name: Type check with MyPy
run: |
mypy src/
- name: Run tests with PyTest
run: |
pytest -v
- name: Run tests with coverage
run: |
pip install coverage
coverage run -m pytest
coverage report
coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: true