Skip to content

Merge pull request #11 from soda-inria/enh/add_torch_xpu_results_for_… #7

Merge pull request #11 from soda-inria/enh/add_torch_xpu_results_for_…

Merge pull request #11 from soda-inria/enh/add_torch_xpu_results_for_… #7

name: Synchronize k-means benchmark result file with a google sheet
on:
push:
branches: main
jobs:
sync_kmeans_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
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