Skip to content

Add kilosort4 wrapper tests #4

Add kilosort4 wrapper tests

Add kilosort4 wrapper tests #4

Workflow file for this run

name: Testing Kilosort4
on:
workflow_dispatch:
schedule:
- cron: "0 12 * * 0" # Weekly on Sunday at noon UTC
pull_request:
types: [synchronize, opened, reopened]
branches:
- main
# env:
# KACHERY_CLOUD_CLIENT_ID: ${{ secrets.KACHERY_CLOUD_CLIENT_ID }}
# KACHERY_CLOUD_PRIVATE_KEY: ${{ secrets.KACHERY_CLOUD_PRIVATE_KEY }}
# concurrency: # Cancel previous workflows on the same pull request
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
jobs:
run:
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.12"] # TODO: "3.9", # Lower and higher versions we support
os: [ubuntu-latest] # TODO: macos-13, windows-latest,
ks_version: ["4.0.12"] # TODO: add / build from pypi based on Christians PR
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: |
pip install -e .[full] # test,extractors,streaming_extractors,
# git config --global user.email "[email protected]"
# git config --global user.name "CI Almighty"
# pip install tabulate
shell: bash
- name: Install Kilosort
run: |
pip install kilosort==${{ matrix.ks_version }}
shell: bash
- name: Run new kilosort4 tests
# run: chmod +x .github/test_kilosort4.sh
run: pytest .github/test_kilosort4.py --durations=0
shell: bash