Skip to content

docs(surfinfo): add missing docstring for flat_border #682

docs(surfinfo): add missing docstring for flat_border

docs(surfinfo): add missing docstring for flat_border #682

Workflow file for this run

name: Run tests
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
max-parallel: 5
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v6
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py', '**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y inkscape --no-install-recommends
pip install --upgrade pip
pip install wheel setuptools numpy cython
# force using latest nibabel
pip install -U nibabel
pip install -e '.[headless]' --no-build-isolation
pip install -e . --no-build-isolation --group dev
python -c 'import cortex; print(cortex.__full_version__)'
- name: Cache Playwright browsers
uses: actions/cache@v6
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright Chromium
run: playwright install --with-deps --only-shell chromium
- name: Test with pytest
timeout-minutes: 25 # in case webviewer tests hang
run: pytest --cov=./
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
env_vars: OS,PYTHON
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false