Add analysis specific files #1840
Workflow file for this run
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
name: 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 test requirements | |
run: | | |
pip install -r requirements-dev.txt | |
- name: Install spyglass | |
run: | | |
pip install -e . | |
- name: Run tests | |
run: | | |
pytest -rP # env vars are set within certain tests |