Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/copy-neuropixels-probe-features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Sync neuropixels_probe_features from ProbeTable

on:
schedule:
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC
workflow_dispatch:

jobs:
copy-file:
runs-on: ubuntu-latest

steps:
- name: Checkout current repository
uses: actions/checkout@v4

- name: Copy file from external repo
run: |
# Download the file directly
curl -o neo/resources/neuropixels_probe_features.json \
https://raw.githubusercontent.com/billkarsh/ProbeTable/refs/heads/main/Tables/probe_features.json

- name: Commit changes if any
id: commit
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"

git add neo/resources/neuropixels_probe_features.json

# Only commit if there are changes
if git diff --staged --quiet; then
echo "No changes to commit"
echo "changes=false" >> $GITHUB_OUTPUT
else
git commit -m "Update neuropixels_probe_features from ProbeTable"
echo "changes=true" >> $GITHUB_OUTPUT
fi

- name: Make PR with updated probe features
if: steps.commit.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v7
with:
title: "Update Neuropixels probe features"
body: "This PR updates the probe features JSON file from the ProbeTable repository."
branch-suffix: short-commit-hash
base: "main"
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include README.rst
include LICENSE.txt
recursive-include neo/resources *.json
include CITATION.rst
prune drafts
include examples/*.py
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,8 @@ all = [
# we do not include 'stfio' in 'all' as it is not pip installable


[tool.setuptools.package-data]
neo = ["resources/*.json"]

[tool.black]
line-length = 120
Loading