diff --git a/.github/workflows/codspeed.yaml b/.github/workflows/codspeed.yaml index 1769e8b..a13b301 100644 --- a/.github/workflows/codspeed.yaml +++ b/.github/workflows/codspeed.yaml @@ -67,6 +67,8 @@ jobs: - name: Run CodSpeed uses: CodSpeedHQ/action@v4 + env: + PYTEST_ADDOPTS: "-c benchmarks/pytest-codspeed.ini" with: mode: instrumentation - run: pytest --codspeed -k "test_faster_" benchmarks/ + run: pytest diff --git a/benchmarks/pytest-codspeed.ini b/benchmarks/pytest-codspeed.ini new file mode 100644 index 0000000..1be9576 --- /dev/null +++ b/benchmarks/pytest-codspeed.ini @@ -0,0 +1,4 @@ +[pytest] +addopts = --codspeed -k "test_faster_" +testpaths = + benchmarks