release 24.5.2.1 #190
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmark Result Check Lightwood | |
on: | |
pull_request: | |
branches: | |
- stable | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Assert benchmarks ran and this version is better | |
run: | | |
wget https://raw.githubusercontent.com/torokmark/assert.sh/main/assert.sh | |
source assert.sh | |
commit=${{ github.event.pull_request.head.sha }} | |
against="best" | |
status=$(curl -X GET http://benchmarks.mindsdb.com:9107/compare/$against/$commit?release_only=True) | |
echo Got benchmark status $status between $commit and $against | |
assert_eq "$status" "Yes" && echo 'Good to go!' | |