-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.14 KB
/
cache_ephys.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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