Skip to content

Cache ephys

Cache ephys #832

Workflow file for this run

name: Cache ephys
on:
schedule:
# every _ hours
- cron: '0 */6 * * *'
push:
tags:
- '*' # Push events to every tag not containing /
workflow_dispatch:
jobs:
package:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
python-version: ["3.11"]
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
update-python: true
cache: true
- name: Install package (to use project CLI/executable)
run: |
pip install -e .
pdm update --prod
- name: Update session status
env:
DBHUB_API_KEY: ${{ secrets.DBHUB_API_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CODE_OCEAN_API_TOKEN: ${{ secrets.CODE_OCEAN_API_TOKEN }}
CODE_OCEAN_DOMAIN: ${{ secrets.CODE_OCEAN_DOMAIN }}
run: |
write_cache --session-type ephys --log-level INFO