-
Notifications
You must be signed in to change notification settings - Fork 0
120 lines (100 loc) · 3.44 KB
/
actions.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: Veri Cekme Guncelleme
on:
schedule:
- cron: "00 00 * * *" # Hergün saat 00:00 da
workflow_dispatch:
jobs:
DataControlAndDawnload:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3 # checkout the repository content
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.10.6" # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run main.py
run: python Scripts/main.py
- name: Upload dataset as artifact
uses: actions/upload-artifact@v2
with:
name: arrData
path: Data/arrData.csv
retention-days: 1
- name: Upload dataset as artifact
uses: actions/upload-artifact@v2
with:
name: depData
path: Data/depData.csv
retention-days: 1
- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "🤖 - Update Data" --allow-empty)
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
PriceData:
needs: DataControlAndDawnload
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3 # checkout the repository content
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.10.6" # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run main.py
run: python Scripts/get_prices.py
- name: Upload dataset as artifact
uses: actions/upload-artifact@v2
with:
name: PriceData
path: Data/priceData.csv
retention-days: 1
- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "🤖 - Update Data" --allow-empty)
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
# KaagleUpload:
# needs: DataControlAndDawnload
# runs-on: ubuntu-latest
# steps:
# - name: checkout repo content
# uses: actions/checkout@v3 # checkout the repository content
# - name: setup python
# uses: actions/setup-python@v4
# with:
# python-version: "3.10" # install the python version needed
# - name: install python packages
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# - name: Kaggle Sync
# env:
# # Kaggle API auth
# KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }}
# KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
# run: |
# cd Data
# kaggle datasets metadata ${{ vars.KAGGLE_DATASET_PATH}}
# python ../Scripts/kaggleUpload.py