-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.3 KB
/
main.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: act-workflow
on:
push:
branches:
- main
- dev
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: write
packages: write
issues: write
id-token: write
pages: write
jobs:
run-everything:
name: run everything all at once
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: dev
- name: debug env
run: |
echo "current wkdir:"
pwd
echo "files in wkdir:"
ls -al
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python requirements
run: pip install -r requirements.txt
- name: debug env
run: |
echo "current wkdir:"
pwd
echo "files in dir"
ls -a
- name: Set up R
uses: r-lib/actions/setup-r@v2
- name: Install R requirements
run: Rscript R_requirements.R
- name: Run orchestrator script
run: |
current_date=$(date +"%Y-%m-%d")
python3 ./code/orchestrate.py -i '/Volumes/VossLab/Repositories/Accelerometer_Data/' -token 'DE4E2DB72778DACA9B8848574107D2F5P' | tee ./out/log-${current_date}.txt