-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 862 Bytes
/
daily.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
name: daily
on:
schedule:
# run at the end of every day
- cron: "0 0 * * 1,2,3,4,5"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Set up R
uses: r-lib/actions/setup-r@v2
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: run python scripts
run: |
python backtest.py
python sparse.py
- name: commit outputs
run: |
git config --local user.name "GitHub Actions"
git config --local user.email "raghuram_actions@github.com"
git add .
git commit -m "updated outputs"
git push