From f5d5e4df7177680417933849d38c1078d65a0825 Mon Sep 17 00:00:00 2001 From: Guillaume Mulocher Date: Fri, 27 Sep 2024 14:53:35 +0200 Subject: [PATCH] ci: Add workflow to run benchmark manually (#839) --- .github/workflows/codspeed.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/codspeed.yml diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml new file mode 100644 index 000000000..7bc7e34ac --- /dev/null +++ b/.github/workflows/codspeed.yml @@ -0,0 +1,23 @@ +--- +name: Run benchmarks manually +on: + workflow_dispatch: + +jobs: + benchmarks: + name: Benchmark ANTA for Python 3.12 + runs-on: ubuntu-latest + needs: [test-python] + steps: + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Install dependencies + run: pip install .[dev] + - name: Run benchmarks + uses: CodSpeedHQ/action@v3 + with: + token: ${{ secrets.CODSPEED_TOKEN }} + run: pytest --codspeed --no-cov --log-cli-level INFO tests/benchmark