Skip to content

fix: fs-aware envelope band default and clean refusal on undeclared u… #151

fix: fs-aware envelope band default and clean refusal on undeclared u…

fix: fs-aware envelope band default and clean refusal on undeclared u… #151

Workflow file for this run

name: Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
name: Test Python ${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["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 }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run tests with pytest
run: |
pytest --cov=src --cov-report=xml --cov-report=term -v
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
continue-on-error: true
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
lint:
name: Lint with flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint - syntax errors and undefined names (blocking)
run: |
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Lint - style warnings (non-blocking)
run: |
flake8 src --count --exit-zero --max-complexity=20 --max-line-length=120 --statistics
type-check:
name: Type check with mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Type check with mypy
run: |
mypy src --ignore-missing-imports --no-strict-optional --allow-untyped-defs
continue-on-error: true
format-check:
name: Check formatting with Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- name: Install Black
run: |
python -m pip install --upgrade pip
pip install black
- name: Check code formatting
run: |
black --check --line-length=88 src tests
continue-on-error: true