Skip to content

Commit

Permalink
Compares previous benchmark results in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiHarif committed Oct 21, 2024
1 parent c7b23db commit 71f7bd2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,21 @@ jobs:
- name: Run Tests
run: npm test

- name: Fetch Previous Benchmark Results
uses: dawidd6/action-download-artifact@v6
with:
branch: ${{ github.ref_name }}
path: prev
check_artifacts: true
if_no_artifact_found: warn

- name: Generate Benchmarks Column Chart
run: python3 scripts/benchmarks.py -i benchmarks.csv -o benchmarks_chart.png
run: |
CMD="python3 scripts/benchmarks.py -i benchmarks.csv -o benchmarks_chart.png"
if [ -d prev ]; then
CMD="$CMD --prev prev/benchmarks.csv"
fi
$CMD
- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 71f7bd2

Please sign in to comment.