성철 알고리즘 파일명 컨벤션에 맞게 수정 #38
This file contains hidden or 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: dataUpdate | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'data/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Git identity | |
run: | | |
git config user.email "${{ github.actor }}@users.noreply.github.com" | |
git config user.name "${{ github.actor }}" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pandas | |
pip install numpy | |
- name: Collect data | |
run: | | |
python dataAnalysis/macro/main.py | |
- name: Commit and push macro data changes | |
run: | | |
git add dataAnalysis/macro/data.json dataAnalysis/excluded_list.txt | |
git commit -m "Update macro data.json and excluded_list.txt" | |
git push https://github.com/Algorithm-Coding-Test-Data-Analysis/algoview.git HEAD:${{ github.ref }} | |
- name: Analyze data | |
run: | | |
python dataAnalysis/notebook/main.py | |
- name: Commit and push notebook data changes | |
run: | | |
git add dataAnalysis/notebook/chart_data.json | |
git commit -m "Update notebook data.json" | |
git push https://github.com/Algorithm-Coding-Test-Data-Analysis/algoview.git HEAD:${{ github.ref }} |