Skip to content

Commit

Permalink
update: github action pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
belajarqywok committed Aug 1, 2024
1 parent c84219a commit 09dea1c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2,846 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/gru_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ jobs:
if: env.match != 'true'
run: |
mkdir datasets
wget https://github.com/belajarqywok/cryptocurrency_prediction/raw/main/postman/symbols.json \
wget https://raw.githubusercontent.com/tebakaja/tebakaja_cryptocurrency/production/postman/symbols.json \
-O postman/symbols.json
go run scraper.go
- name: Install Libraries
if: env.match != 'true'
run: pip install -r requirements.txt
# - name: Install Libraries
# if: env.match != 'true'
# run: pip install -r requirements.txt

- name: Modeling and Training
if: env.match != 'true'
run: |
mkdir models
mkdir pickles
mkdir posttrained
python training.py --algorithm=GRU
# python training.py --algorithm=GRU

- name: Set Pipeline Schedule
if: env.match != 'true'
Expand All @@ -80,17 +80,17 @@ jobs:
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_GRU_CRED }}
filename: datasets.zip
folderId: ${{ secrets.GDRIVE_CRYPTO_ID }}
folderId: ${{ secrets.GDRIVE_GRU_ID }}
name: datasets.zip
overwrite: "true"

- name: Store Models to Google Drive
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_GRU_CRED }}
filename: models.zip
folderId: ${{ secrets.GDRIVE_GRU_ID }}
name: models.zip
Expand All @@ -100,7 +100,7 @@ jobs:
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_GRU_CRED }}
filename: pickles.zip
folderId: ${{ secrets.GDRIVE_GRU_ID }}
name: pickles.zip
Expand All @@ -110,7 +110,7 @@ jobs:
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_GRU_CRED }}
filename: posttrained.zip
folderId: ${{ secrets.GDRIVE_GRU_ID }}
name: posttrained.zip
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/lstm_gru_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ jobs:
if: env.match != 'true'
run: |
mkdir datasets
wget https://github.com/belajarqywok/cryptocurrency_prediction/raw/main/postman/symbols.json \
wget https://raw.githubusercontent.com/tebakaja/tebakaja_cryptocurrency/production/postman/symbols.json \
-O postman/symbols.json
go run scraper.go
- name: Install Libraries
if: env.match != 'true'
run: pip install -r requirements.txt
# - name: Install Libraries
# if: env.match != 'true'
# run: pip install -r requirements.txt

- name: Modeling and Training
if: env.match != 'true'
run: |
mkdir models
mkdir pickles
mkdir posttrained
python training.py --algorithm=LSTM_GRU
# python training.py --algorithm=LSTM_GRU

- name: Set Pipeline Schedule
if: env.match != 'true'
Expand All @@ -80,17 +80,17 @@ jobs:
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_LSTM_GRU_CRED }}
filename: datasets.zip
folderId: ${{ secrets.GDRIVE_CRYPTO_ID }}
folderId: ${{ secrets.GDRIVE_LSTM_GRU_ID }}
name: datasets.zip
overwrite: "true"

- name: Store Models to Google Drive
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_LSTM_GRU_CRED }}
filename: models.zip
folderId: ${{ secrets.GDRIVE_LSTM_GRU_ID }}
name: models.zip
Expand All @@ -100,7 +100,7 @@ jobs:
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_LSTM_GRU_CRED }}
filename: pickles.zip
folderId: ${{ secrets.GDRIVE_LSTM_GRU_ID }}
name: pickles.zip
Expand All @@ -110,7 +110,7 @@ jobs:
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_LSTM_GRU_CRED }}
filename: posttrained.zip
folderId: ${{ secrets.GDRIVE_LSTM_GRU_ID }}
name: posttrained.zip
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/lstm_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ jobs:
if: env.match != 'true'
run: |
mkdir datasets
wget https://github.com/belajarqywok/cryptocurrency_prediction/raw/main/postman/symbols.json \
wget https://raw.githubusercontent.com/tebakaja/tebakaja_cryptocurrency/production/postman/symbols.json \
-O postman/symbols.json
go run scraper.go
- name: Install Libraries
if: env.match != 'true'
run: pip install -r requirements.txt
# - name: Install Libraries
# if: env.match != 'true'
# run: pip install -r requirements.txt

- name: Modeling and Training
if: env.match != 'true'
run: |
mkdir models
mkdir pickles
mkdir posttrained
python training.py --algorithm=LSTM
# python training.py --algorithm=LSTM

- name: Set Pipeline Schedule
if: env.match != 'true'
Expand All @@ -80,17 +80,17 @@ jobs:
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_LSTM_CRED }}
filename: datasets.zip
folderId: ${{ secrets.GDRIVE_CRYPTO_ID }}
folderId: ${{ secrets.GDRIVE_LSTM_ID }}
name: datasets.zip
overwrite: "true"

- name: Store Models to Google Drive
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_LSTM_CRED }}
filename: models.zip
folderId: ${{ secrets.GDRIVE_LSTM_ID }}
name: models.zip
Expand All @@ -100,7 +100,7 @@ jobs:
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_LSTM_CRED }}
filename: pickles.zip
folderId: ${{ secrets.GDRIVE_LSTM_ID }}
name: pickles.zip
Expand All @@ -110,7 +110,7 @@ jobs:
if: env.match != 'true'
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.GDRIVE_CRED }}
credentials: ${{ secrets.GDRIVE_LSTM_CRED }}
filename: posttrained.zip
folderId: ${{ secrets.GDRIVE_LSTM_ID }}
name: posttrained.zip
Expand Down
Loading

0 comments on commit 09dea1c

Please sign in to comment.