Skip to content

fix position interval issue in ripple detection (#621) #101

fix position interval issue in ripple detection (#621)

fix position interval issue in ripple detection (#621) #101

Workflow file for this run

name: Test conda env and run tests
on:
push:
schedule: # once a day at midnight UTC
- cron: '0 0 * * *'
jobs:
run-tests:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest] #, macos-latest, windows-latest]
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]
with:
access_token: ${{ github.token }}
all_but_latest: true
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON }}
- name: Set up conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: spyglass
environment-file: environment.yml
miniforge-variant: Mambaforge
miniforge-version: latest
- name: Install spyglass
run: |
pip install -e .[test]
- name: Run tests
run: |
pytest -rP # env vars are set within certain tests