Skip to content

Create perf json

Create perf json #193

# This workflow will setup Python, run create_perf_json.py, and archive
# perf JSON files.
name: Create perf json
on:
push:
pull_request:
schedule:
# Tuesdays at 9AM PST
- cron: '0 16 * * 2'
permissions:
contents: read
jobs:
create-perf-json:
runs-on: ubuntu-latest
steps:
- name: Checkout perfmon
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python 3.x
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: "3.x"
- name: Run unittests
working-directory: ./scripts/unittesting
run: python -m unittest metric_test.py test_create_perf_json.py
- name: Create perf json files
working-directory: ./scripts
run: python create_perf_json.py -v
- name: Archive perf json files
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
with:
name: perf-json
path: scripts/perf
retention-days: 10
if-no-files-found: error