Aggregate Test Results #883
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Aggregate Test Results | |
on: | |
schedule: | |
- cron: '0 2 * * *' # daily at 2 am | |
workflow_dispatch: | |
inputs: | |
collection_date: | |
description: 'Which day to collect test results from. Format yyyy-mm-dd. If empty, the previous day is used.' | |
type: string | |
required: false | |
jobs: | |
getTestResults: | |
name: Get Test Results | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: setup python | |
uses: actions/setup-python@v5 | |
- name: Install Python libs | |
run: python -m pip install requests | |
- name: Aggregate yesterdays test results | |
run: python ./pythonFiles/aggregateTestResults.py ${{ secrets.GITHUB_TOKEN }} ${{ inputs.collection_date }} | |
- name: Upload test result files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: testResults-${{ inputs.collection_date }} | |
path: AggTestResults-*.json | |
retention-days: 60 |