diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 2226a23..b3e1fc0 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -11,28 +11,16 @@ env: jobs: benchmarks-instrumentation: - name: Run instrumentation benchmarks - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v4 - with: - submodules: "recursive" - - uses: actions/setup-python@v2 - with: - python-version: ${{ env.PYTHON_VERSION }} - - name: Install local version of pytest-codspeed - run: | - sudo apt-get install valgrind -y - pip install . - sudo apt-get remove valgrind -y - - name: Run benchmarks - uses: CodSpeedHQ/action@main - with: - run: pytest tests/benchmarks/ --codspeed + strategy: + matrix: + include: + - mode: "instrumentation" + runs-on: ubuntu-24.04 + - mode: "walltime" + runs-on: codspeed-macro - benchmarks-walltime: - name: Run walltime benchmarks - runs-on: codspeed-macro + name: Run ${{ matrix.mode }} benchmarks + runs-on: ${{ matrix.runs-on }} steps: - uses: actions/checkout@v4 with: @@ -49,3 +37,5 @@ jobs: uses: CodSpeedHQ/action@main with: run: pytest tests/benchmarks/ --codspeed + upload-url: ${{ secrets.ARTHUR_DEV_UPLOAD_URL }} + token: ${{ secrets.ARTHUR_DEV_TOKEN }}3d577eb2-d631-41ce-b4e0-9f3ce42df329