From e3df9dda99a3790468fb3a9d0c49f3a9005cd72b Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sun, 3 Aug 2025 21:13:41 +0800 Subject: [PATCH] CI(benchmark): run benchmark on codspeed-macro for wall time The previous results are not reliable, due to https://github.com/CodSpeedHQ/pytest-codspeed/issues/37. The new method is good. See https://docs.codspeed.io/instruments/walltime/#usage-with-github-actions --- .github/workflows/benchmark.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 31e7c1b0c..cda135514 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -6,7 +6,8 @@ on: jobs: benchmark: - runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'deepmodeling' }} + runs-on: codspeed-macro steps: - uses: actions/checkout@v4 - name: Set up Python