-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1.49 KB
/
sync_benchmark_files_to_gsheet.yaml
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
name: Synchronize k-means benchmark result file with a google sheet
on:
push:
branches: main
jobs:
sync_benchmark_result_file_with_gsheet:
name: Run synchronization script
runs-on: ubuntu-latest
environment: Publish
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install pre-requisites
run: pip install numpy pandas gspread
- name: Synchronize the worksheet
env:
GSPREAD_SERVICE_ACCOUNT_AUTH_KEY: ${{secrets.GSPREAD_SERVICE_ACCOUNT_AUTH_KEY}}
GSPREAD_URL: ${{vars.GSPREAD_URL}}
run: |
python ./benchmarks/kmeans/consolidate_result_csv.py ./benchmarks/kmeans/results.csv --check-csv
python ./benchmarks/pca/consolidate_result_csv.py ./benchmarks/pca/results.csv --check-csv
python ./benchmarks/ridge/consolidate_result_csv.py ./benchmarks/ridge/results.csv --check-csv
echo "$GSPREAD_SERVICE_ACCOUNT_AUTH_KEY" > service_account.json
python ./benchmarks/kmeans/consolidate_result_csv.py ./benchmarks/kmeans/results.csv \
--sync-to-gspread --gspread-url $GSPREAD_URL --gspread-auth-key ./service_account.json
python ./benchmarks/pca/consolidate_result_csv.py ./benchmarks/pca/results.csv \
--sync-to-gspread --gspread-url $GSPREAD_URL --gspread-auth-key ./service_account.json
python ./benchmarks/ridge/consolidate_result_csv.py ./benchmarks/ridge/results.csv \
--sync-to-gspread --gspread-url $GSPREAD_URL --gspread-auth-key ./service_account.json