daily #275
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: 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 |