Skip to content

Commit b76d5a7

Browse files
authored
Merge branch 'main' into is-filtered
2 parents 4b6b1b9 + c240155 commit b76d5a7

116 files changed

Lines changed: 2365 additions & 680 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ fi
1010

1111
pytest -m "$MARKER" -vv -ra --durations=0 --durations-min=0.001 | tee report.txt; test ${PIPESTATUS[0]} -eq 0 || exit 1
1212
echo "# Timing profile of ${MARKER}" >> $GITHUB_STEP_SUMMARY
13-
python $GITHUB_WORKSPACE/.github/build_job_summary.py report.txt >> $GITHUB_STEP_SUMMARY
13+
python $GITHUB_WORKSPACE/.github/scripts/build_job_summary.py report.txt >> $GITHUB_STEP_SUMMARY
1414
rm report.txt

.github/scripts/README.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This folder contains test scripts for running in the CI, that are not run as part of the usual
2+
CI because they are too long / heavy. These are run on cron-jobs once per week.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import os
2+
import re
3+
from pathlib import Path
4+
import requests
5+
import json
6+
from packaging.version import parse
7+
import spikeinterface
8+
9+
def get_pypi_versions(package_name):
10+
"""
11+
Make an API call to pypi to retrieve all
12+
available versions of the kilosort package.
13+
"""
14+
url = f"https://pypi.org/pypi/{package_name}/json"
15+
response = requests.get(url)
16+
response.raise_for_status()
17+
data = response.json()
18+
versions = list(sorted(data["releases"].keys()))
19+
# Filter out versions that are less than 4.0.16
20+
versions = [ver for ver in versions if parse(ver) >= parse("4.0.16")]
21+
return versions
22+
23+
24+
if __name__ == "__main__":
25+
# Get all KS4 versions from pipi and write to file.
26+
package_name = "kilosort"
27+
versions = get_pypi_versions(package_name)
28+
with open(Path(os.path.realpath(__file__)).parent / "kilosort4-latest-version.json", "w") as f:
29+
print(versions)
30+
json.dump(versions, f)
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["4.0.10", "4.0.11", "4.0.12", "4.0.5", "4.0.6", "4.0.7", "4.0.8", "4.0.9"]

0 commit comments

Comments
 (0)