From 9a5da23f62f1983ab76d61e9e28c44e5567b28d4 Mon Sep 17 00:00:00 2001 From: Colin Delotavo Date: Wed, 30 Nov 2022 22:34:33 +1100 Subject: [PATCH] python3 perf_compare.py diff_tests/perf_history/ --- .github/workflows/github-action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml index d68361f92..20b5e038d 100644 --- a/.github/workflows/github-action.yml +++ b/.github/workflows/github-action.yml @@ -88,8 +88,15 @@ jobs: - name: ctest performance tests on cruxbc working-directory: ${{github.workspace}}/Release-build if: runner.os == 'Linux' - run: + run: | ctest -R diff-perf-cruxbc -VV + git pull || echo "Skipping git pull." # Git pull fails on pull request + cp -r ${{github.workspace}}/Release-build/Testing/Temporary/LastTest.log $GITHUB_WORKSPACE/Test-Suite/diff_tests/perf_history/perf-$(date +'%Y-%m-%dT%H:%M:%S').txt + cp -r ${{github.workspace}}/Release-build/Testing/Temporary/LastTest.log $GITHUB_WORKSPACE/Test-Suite/diff_tests/perf-latest.txt + cd $GITHUB_WORKSPACE/Test-Suite/diff_tests + time python3 -m pip install --upgrade pip setuptools wheel + time pip3 install -r ./requirements.txt + time python3 perf_compare.py -d ./perf_history/ --tablefmt grid --exit-on-error --only-show-changed --threshold-percentage 80 - name: create-coverage-report-and-remove-system-files working-directory: ${{github.workspace}}/Release-build