Skip to content

feat: optimize TFCE processing with 4x performance improvement #1

feat: optimize TFCE processing with 4x performance improvement

feat: optimize TFCE processing with 4x performance improvement #1

Workflow file for this run

name: Test
on:
push:
branches: [ main, dev/* ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12", "3.13"]
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 uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install dependencies
run: uv sync --all-extras
- name: Run pre-commit hooks
run: uv run pre-commit run --all-files
- name: Run tests with coverage
run: uv run pytest --cov=src/accelperm --cov-report=xml --cov-report=html
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install dependencies
run: uv sync --all-extras
- name: Check formatting with ruff
run: uv run ruff format --check .
- name: Lint with ruff
run: uv run ruff check .
- name: Type check with mypy
run: uv run mypy src/accelperm --ignore-missing-imports