Add kilosort4 wrapper tests #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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==${{ runner.ks_version }} | |
shell: bash | |
- name: Set execute permissions on run_tests.sh | |
# run: chmod +x .github/test_kilosort4.sh | |
run: pytest .github/test_kilosort4.py --durations=0 | |
shell: bash |