Skip to content

Update src/spyglass/spikesorting/v1/recording.py #116

Update src/spyglass/spikesorting/v1/recording.py

Update src/spyglass/spikesorting/v1/recording.py #116

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/cancel-workflow-action@0.11.0
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