diff --git a/.github/workflows/asv_benchmark_main.yml b/.github/workflows/asv_benchmark_main.yml index 0f1c2ce..e33e832 100644 --- a/.github/workflows/asv_benchmark_main.yml +++ b/.github/workflows/asv_benchmark_main.yml @@ -37,11 +37,6 @@ jobs: env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | - # prepare main branch for comparison - git remote add upstream https://github.com/${{ github.repository }}.git - git fetch upstream main - - # Run benchmarks, allow errors, they will be caught in the next step asv run --interleave-rounds -a repeat=3 || true - name: BENCHMARK RESULTS diff --git a/.github/workflows/asv_benchmarks_pr.yml b/.github/workflows/asv_benchmarks_pr.yml index 9bbb24f..fbd0dae 100644 --- a/.github/workflows/asv_benchmarks_pr.yml +++ b/.github/workflows/asv_benchmarks_pr.yml @@ -37,21 +37,11 @@ jobs: env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | - # prepare main branch for comparison - git remote add upstream https://github.com/${{ github.repository }}.git - git fetch upstream main - - # Run benchmarks, allow errors, they will be caught in the next step - asv continuous --quick upstream/main HEAD \ - --no-stats --interleave-rounds -a repeat=3 || true + asv run --quick --interleave-rounds -a repeat=3 || true - name: BENCHMARK RESULTS run: | - asv compare --factor=1.1 --no-stats --split upstream/main HEAD | tee ${{ env.BENCHMARKS_OUTPUT }} - if grep -q "Benchmarks that have got worse" "${{ env.BENCHMARKS_OUTPUT }}"; then - echo "Performance degradation detected!" - exit 1 - fi + asv show HEAD - name: Upload Benchmark Results Folder uses: actions/upload-artifact@v3