Skip to content

Fix documentation indexing metadata #84

Fix documentation indexing metadata

Fix documentation indexing metadata #84

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.12"]
runs-on: ${{ matrix.os }}
steps:
- name : Checkout repository
uses: actions/checkout@v6
with:
lfs: true
- name: Set up ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install OS dependencies
if: startsWith(matrix.os,'ubuntu')
run: |
sudo apt-get install libsndfile1-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8
python -m pip install -r requirements-dev.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# Ignores - https://lintlyci.github.io/Flake8Rules
# E203 whitespace before ':' (sometimes conflicts with black)
# E501 line too long
# W503 line break occurred before a binary operator
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --ignore=E203,E501,W503 --statistics
- name: Test with pytest
run: |
pytest
- name: Validate bundled models
run: |
vocalpy-models validate --smoke-test
- name: Mouse Baseline Smoke
if: matrix.os == 'macos-latest'
run: |
python scripts/compare_example_baselines.py \
--species mouse \
--max-extra-total 0 \
--max-missing-total 0 \
--max-top1-mismatches-total 0 \
--max-top2-mismatches-total 0 \
--max-start-delta-ms 0.0 \
--max-end-delta-ms 0.0