Skip to content

Merge pull request #200 from weilinwa/perf_converted_json_etma3.6 #180

Merge pull request #200 from weilinwa/perf_converted_json_etma3.6

Merge pull request #200 from weilinwa/perf_converted_json_etma3.6 #180

# 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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Set up Python 3.x
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
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@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: perf-json
path: scripts/perf
retention-days: 10
if-no-files-found: error