Skip to content

Commit

Permalink
CI for daily test is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
awaisabbas-rs committed Aug 28, 2023
1 parent 887ed49 commit 60ea318
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/dayly_tests.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: Daily tests

on:
push:
schedule:
- cron: "30 19 * * 1,2,3,4,5"
workflow_dispatch:
inputs:
config_files:
description: 'Json config files'
required: true
default: 'suites/Daily-tests/Daily-tests_synth_rs_ade_with_bram_with_dsp.json'
conditional:
type: boolean
description: 'Base'
required: true
default: true
schedule:
- cron: "30 19 * * 1,2,3,4,5"
workflow_dispatch:
inputs:
config_files:
description: 'Json config files'
required: true
default: 'suites/Daily-tests/Daily-tests_synth_rs_ade_with_bram_with_dsp.json'
conditional:
type: boolean
description: 'Base'
required: true
default: true

jobs:
build:
Expand Down Expand Up @@ -75,7 +74,7 @@ jobs:
run: |
module load fpga_tools/raptor/build_env
module load opensource/gcc/11.2.0
if [[ "${{ github.event_name }}" == "push" ]]; then
if [[ "${{ github.event_name }}" == "schedule" ]]; then
python3 scripts/synth/synthesis.py --config_files "suites/Daily-tests/Daily-tests_synth_rs_ade_with_bram_with_dsp.json"
else
python3 scripts/synth/synthesis.py --config_files ${{ github.event.inputs.config_files }}
Expand All @@ -96,7 +95,7 @@ jobs:
run: |
var=`find result*/ -name *json`
echo $var
if ${{ github.event_name == 'push' || github.event.inputs.conditional }}; then
if ${{ github.event_name == 'schedule' || github.event.inputs.conditional }}; then
python3 scripts/log_automation/run_metrics_extractor.py --yosys result*/*.json .github/logs/Daily-tests_synth_rs_ade_with_bram_with_dsp --run_log result*/run.log .github/logs/Daily-tests_synth_rs_ade_with_bram_with_dsp/run.log --base .github/logs/Daily-tests_synth_rs_ade_with_bram_with_dsp --output_file Daily-tests_synth_rs_ade_with_bram_with_dsp.csv
else
python3 scripts/log_automation/run_metrics_extractor.py --yosys $var --output_file synth_rs.csv --run_log result*/run.log
Expand All @@ -112,7 +111,7 @@ jobs:
- name: Compare QoR
run: |
if ${{ github.event_name == 'push' || (github.event.inputs.config_files == 'suites/Daily-tests/Daily-tests_synth_rs_ade_with_bram_with_dsp.json' && github.event.inputs.conditional) }}; then
if ${{ github.event_name == 'schedule' || (github.event.inputs.config_files == 'suites/Daily-tests/Daily-tests_synth_rs_ade_with_bram_with_dsp.json' && github.event.inputs.conditional) }}; then
pip install --user pandas
pip install --user termcolor
python3 scripts/log_automation/result_comparision.py Daily-tests_synth_rs_ade_with_bram_with_dsp.csv
Expand Down

0 comments on commit 60ea318

Please sign in to comment.