Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85f7c6e690 | ||
|
|
2ac2f17d1a | ||
|
|
7cd4bb6b09 | ||
| 1bf4d875af | |||
|
|
8a01bba644 | ||
|
|
cf2edab297 | ||
|
|
5443002c5f | ||
| e19a5aac9a | |||
|
|
3515703a90 |
9
.github/workflows/dispatcher.yml
vendored
9
.github/workflows/dispatcher.yml
vendored
@@ -68,13 +68,10 @@ jobs:
|
||||
|
||||
test-data-upload:
|
||||
needs: [engine, server, ui]
|
||||
runs-on: self-hosted
|
||||
if: always()
|
||||
#uses: ./.github/workflows/upload_data.yml
|
||||
steps:
|
||||
- name: Temp turn off
|
||||
run: |
|
||||
echo "Uploading data to table"
|
||||
uses: ./.github/workflows/upload_data.yml
|
||||
secrets: inherit
|
||||
|
||||
|
||||
release:
|
||||
needs: test-data-upload
|
||||
|
||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -88,8 +88,8 @@ jobs:
|
||||
cd $(git rev-parse --show-toplevel)
|
||||
pwd
|
||||
cd release/
|
||||
zip linux.zip linux/
|
||||
zip windows.zip windows/
|
||||
zip linux.zip linux/*
|
||||
zip windows.zip windows/*
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
|
||||
19
.github/workflows/upload_data.yml
vendored
19
.github/workflows/upload_data.yml
vendored
@@ -2,22 +2,15 @@ name: Upload Test Results to Google Sheets
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
upload:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python (for Google Sheets API)
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install gspread google-auth
|
||||
pip install gspread google-auth --break-system-packages
|
||||
|
||||
- name: Upload test_data.log to Google Sheets
|
||||
env:
|
||||
@@ -27,14 +20,16 @@ jobs:
|
||||
echo "$GOOGLE_SERVICE_ACCOUNT_JSON" > service_account.json
|
||||
|
||||
python <<'PYCODE'
|
||||
import gspread, json, time
|
||||
import gspread, json, time, subprocess
|
||||
|
||||
# credentials
|
||||
creds = json.load(open("service_account.json"))
|
||||
gc = gspread.service_account_from_dict(creds)
|
||||
sh = gc.open_by_key("${{ secrets.SPREADSHEET_ID }}")
|
||||
v = subprocess.run(['git','rev-parse','--show-toplevel'], capture_output=True).stdout.decode().strip()
|
||||
print(f"{v}/test_data.log")
|
||||
|
||||
with open("test_data.log", "r") as f:
|
||||
with open(f"{v}/test_data.log", "r") as f:
|
||||
lines = [line.strip() for line in f if line.strip()]
|
||||
|
||||
project = lines[0].lower()
|
||||
|
||||
Reference in New Issue
Block a user