From b6663055ec62ffc80374c3ecef4cb06ea790286b Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Wed, 21 Feb 2024 18:42:18 +0100 Subject: [PATCH 1/6] test run --- .github/workflows/benchmarks.yml | 6 +++--- requirements.txt | 2 +- tests/test_recursive_fibo.py | 4 ++-- tests/test_recursive_fibo_cached.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 46b7eae..53f263d 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -13,10 +13,10 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 with: - python-version: '3.10' + python-version: "3.12" - run: pip install -r requirements.txt - - uses: CodSpeedHQ/action@feat/tokenless-upload + - uses: CodSpeedHQ/action@v2 with: - upload_url: https://api.staging.preview.codspeed.io/upload + upload-url: https://api.staging.preview.codspeed.io/upload run: pytest tests/ --codspeed diff --git a/requirements.txt b/requirements.txt index a2fdbc5..2b896e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ pytest~=7.1.3 pytest-benchmark~=3.4.1 -pytest-codspeed~=1.1.0 +pytest-codspeed~=2.2.0 diff --git a/tests/test_recursive_fibo.py b/tests/test_recursive_fibo.py index 536aef7..d6c2920 100644 --- a/tests/test_recursive_fibo.py +++ b/tests/test_recursive_fibo.py @@ -7,7 +7,7 @@ def _(): recursive_fibonacci(10) -def test_recursive_fibo_20(benchmark): +def test_recursive_fibo_11(benchmark): @benchmark def _(): - recursive_fibonacci(20) + recursive_fibonacci(11) diff --git a/tests/test_recursive_fibo_cached.py b/tests/test_recursive_fibo_cached.py index 6cf5f13..38bb061 100644 --- a/tests/test_recursive_fibo_cached.py +++ b/tests/test_recursive_fibo_cached.py @@ -14,10 +14,10 @@ def _(): def test_recursive_cached_fibo_100(benchmark): @benchmark def _(): - recursive_cached_fibonacci(100) + recursive_cached_fibonacci(15) def test_recursive_cached_fibo_1000(benchmark): @benchmark def _(): - recursive_cached_fibonacci(1000) + recursive_cached_fibonacci(20) From 1fb98ffefe6ce030a91122507811f1ad31b250e1 Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Wed, 21 Feb 2024 20:53:20 +0100 Subject: [PATCH 2/6] test runner 2.1.2-beta.1 --- .github/workflows/benchmarks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 53f263d..4314c3d 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -20,3 +20,4 @@ jobs: with: upload-url: https://api.staging.preview.codspeed.io/upload run: pytest tests/ --codspeed + runner-version: 2.1.2-beta.1 From 1574a652787aedca84dc8c552473aefe5a9888a4 Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Wed, 21 Feb 2024 21:01:40 +0100 Subject: [PATCH 3/6] better with token --- .github/workflows/benchmarks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 4314c3d..7dac981 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -21,3 +21,4 @@ jobs: upload-url: https://api.staging.preview.codspeed.io/upload run: pytest tests/ --codspeed runner-version: 2.1.2-beta.1 + token: ${{ secrets.CODSPEED_TOKEN }} From 83b6d69fd9a8c6e231ad89e615542e398d86e498 Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Thu, 22 Feb 2024 11:06:34 +0100 Subject: [PATCH 4/6] test runner 2.1.2-beta.2 --- .github/workflows/benchmarks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 7dac981..6e589b5 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -20,5 +20,5 @@ jobs: with: upload-url: https://api.staging.preview.codspeed.io/upload run: pytest tests/ --codspeed - runner-version: 2.1.2-beta.1 + runner-version: 2.1.2-beta.2 token: ${{ secrets.CODSPEED_TOKEN }} From 2aff020110b5854d5976816c9b503593f8e9aca3 Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Thu, 22 Feb 2024 11:31:43 +0100 Subject: [PATCH 5/6] test runner 2.1.2-beta.3 --- .github/workflows/benchmarks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 6e589b5..182937f 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -20,5 +20,5 @@ jobs: with: upload-url: https://api.staging.preview.codspeed.io/upload run: pytest tests/ --codspeed - runner-version: 2.1.2-beta.2 + runner-version: 2.1.2-beta.3 token: ${{ secrets.CODSPEED_TOKEN }} From b0182ae1282738da6297a182d57dbfdaedf81e26 Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Thu, 22 Feb 2024 19:32:15 +0100 Subject: [PATCH 6/6] test on main --- .github/workflows/benchmarks.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 182937f..a4c33bc 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -16,9 +16,8 @@ jobs: python-version: "3.12" - run: pip install -r requirements.txt - - uses: CodSpeedHQ/action@v2 + - uses: CodSpeedHQ/action@main with: upload-url: https://api.staging.preview.codspeed.io/upload run: pytest tests/ --codspeed - runner-version: 2.1.2-beta.3 token: ${{ secrets.CODSPEED_TOKEN }}