Skip to content

Commit

Permalink
ci: Comment benchmark job (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity authored Oct 31, 2024
1 parent 8eff6c0 commit 49723b5
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,40 +112,40 @@ jobs:
- name: Perform Integration Testing
run: make integration-tests

benchmark:
runs-on: ubuntu-22.04
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ~3.10
cache: "pip"

- name: Install dependencies
run: |-
pip3 install poetry hyperon
poetry lock --no-update
poetry install
- name: Build hyperon-das
run: poetry build

- name: Install hyperon-das
run: pip install $(find ./dist -name *.whl)

- name: Perform Benchmark
run: |
output=$(make performance-tests 2>&1)
real_time=$(echo "$output" | grep "^real" | awk 'NR==2 {print $2}')
if echo "$output" | grep -q 'SUCCESS!'; then
echo "$real_time"
exit 0
fi
echo "FAILURE!"
exit 1
# benchmark:
# runs-on: ubuntu-22.04
# if: ${{ github.ref == 'refs/heads/master' }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: ~3.10
# cache: "pip"

# - name: Install dependencies
# run: |-
# pip3 install poetry hyperon
# poetry lock --no-update
# poetry install

# - name: Build hyperon-das
# run: poetry build

# - name: Install hyperon-das
# run: pip install $(find ./dist -name *.whl)

# - name: Perform Benchmark
# run: |
# output=$(make performance-tests 2>&1)
# real_time=$(echo "$output" | grep "^real" | awk 'NR==2 {print $2}')

# if echo "$output" | grep -q 'SUCCESS!'; then
# echo "$real_time"
# exit 0
# fi

# echo "FAILURE!"
# exit 1

0 comments on commit 49723b5

Please sign in to comment.