-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: Pull from old stash, resolve conflicts * Pytest WIP. Position centriod fix. Centralize device prompt logic * Add tests for all tables in * WIP: Improve coverage behav, dio * WIP: Add coverage, see details: - Add `return_fig` param to plotting helper functions to permit tests - `common_filter` - `common_interval` - Add coverage for ~1/2 of `common` - `common_behav` - `common_device` - `common_ephys` - `common_filter` - `common_interval` - with helper funcs tested seperately - `common_lab` - `common_nwbfile` - partial * WIP pytest common 2nd half, start lfp * WIP lfp tests, ahead of fetch upstream * Add lfp pipeline tests * Run pre-commit checks * Fix bug * Unpin position_tools for CI * Change download data dir * Change download data dir 2 * Fix teardown. Coverage 67% * Update changelog * logger.warn -> logger.warning
- Loading branch information
Showing
46 changed files
with
2,283 additions
and
639 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,16 +17,6 @@ jobs: | |
env: | ||
OS: ${{ matrix.os }} | ||
PYTHON: '3.8' | ||
# SPYGLASS_BASE_DIR: ./data | ||
# KACHERY_STORAGE_DIR: ./data/kachery-storage | ||
# DJ_SUPPORT_FILEPATH_MANAGEMENT: True | ||
# services: | ||
# datajoint_test_server: | ||
# image: datajoint/mysql | ||
# ports: | ||
# - 3306:3306 | ||
# options: >- | ||
# -e MYSQL_ROOT_PASSWORD=tutorial | ||
steps: | ||
- name: Cancel Workflow Action | ||
uses: styfle/[email protected] | ||
|
@@ -49,6 +39,17 @@ jobs: | |
- name: Install spyglass | ||
run: | | ||
pip install -e .[test] | ||
- name: Download data | ||
env: | ||
UCSF_BOX_TOKEN: ${{ secrets.UCSF_BOX_TOKEN }} | ||
UCSF_BOX_USER: ${{ secrets.UCSF_BOX_USER }} | ||
WEBSITE: ftps://ftp.box.com/trodes_to_nwb_test_data/minirec20230622.nwb | ||
RAW_DIR: /home/runner/work/spyglass/spyglass/tests/_data/raw/ | ||
run: | | ||
mkdir -p $RAW_DIR | ||
wget --recursive --no-verbose --no-host-directories --no-directories \ | ||
--user $UCSF_BOX_USER --password $UCSF_BOX_TOKEN \ | ||
-P $RAW_DIR $WEBSITE | ||
- name: Run tests | ||
run: | | ||
pytest -rP # env vars are set within certain tests |
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
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
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
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
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
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
Oops, something went wrong.