Add kilosort4 wrapper tests #35
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 | |
jobs: | |
versions: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
pip install requests | |
- name: Fetch package versions from PyPI | |
run: | | |
python .github/scripts/check_kilosort4_releases.py | |
shell: bash | |
- name: Set matrix data | |
id: set-matrix | |
run: | | |
pwd | |
ls .github/scripts | |
echo "matrix=$(jq -c . < .github/scripts/kilosort4-latest-version.json)" >> $GITHUB_OUTPUT | |
test: | |
needs: versions | |
name: ${{ matrix.ks_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] | |
ks_version: ${{ fromJson(needs.versions.outputs.matrix) }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages | |
run: | | |
pip install -e .[test] | |
shell: bash | |
- name: Install Kilosort | |
run: | | |
pip install kilosort==${{ matrix.ks_version }} | |
shell: bash | |
- name: Run new kilosort4 tests | |
run: | | |
pytest -k test_kilosort4_new --durations=0 | |
shell: bash |