From ed76e35a5572997c65e06d5dc58cd600e69cad9c Mon Sep 17 00:00:00 2001 From: Konstantin Gukov Date: Sat, 13 Feb 2021 16:48:10 +0100 Subject: [PATCH 1/6] Upload benchbark results to GitHub Action artifacts --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbf2cdb..5ce6b5f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,6 +84,11 @@ jobs: CIBW_TEST_COMMAND: "pytest {project}/tests" CIBW_TEST_EXTRAS: test + - uses: actions/upload-artifact@v2 + with: + name: py${{ matrix.python-version }}_${{ matrix.platform || matrix.os }}.svg + path: /**/benchmark_*.svg + - name: build windows 32bit binaries if: matrix.os == 'windows' run: cibuildwheel --output-dir ${{ matrix.wheels-dir }} From c756791929a0df7a5f5da6db467f8f45bd59edff Mon Sep 17 00:00:00 2001 From: Konstantin Gukov Date: Sat, 13 Feb 2021 16:52:48 +0100 Subject: [PATCH 2/6] Upload benchbark results to GitHub Action artifacts --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ce6b5f..eda02e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,7 @@ jobs: - uses: actions/upload-artifact@v2 with: name: py${{ matrix.python-version }}_${{ matrix.platform || matrix.os }}.svg - path: /**/benchmark_*.svg + path: benchmark_*.svg - name: build windows 32bit binaries if: matrix.os == 'windows' From 546bfeddca04d49309feb97c07027e7bd0ae3679 Mon Sep 17 00:00:00 2001 From: Konstantin Gukov Date: Sat, 13 Feb 2021 17:15:33 +0100 Subject: [PATCH 3/6] Upload benchmark results to GitHub Action artifacts --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eda02e5..e5cea16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,10 @@ jobs: - uses: actions/upload-artifact@v2 with: name: py${{ matrix.python-version }}_${{ matrix.platform || matrix.os }}.svg - path: benchmark_*.svg + path: dtparse/**/benchmark_*.svg + + - name: debug the action + uses: lhotari/action-upterm@v1 - name: build windows 32bit binaries if: matrix.os == 'windows' From f3154f8af9e7ef5df885618c60e7af0473ed0d30 Mon Sep 17 00:00:00 2001 From: Konstantin Gukov Date: Sun, 14 Feb 2021 12:38:40 +0100 Subject: [PATCH 4/6] try to upload from the root folder --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5cea16..9d215ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,10 +87,10 @@ jobs: - uses: actions/upload-artifact@v2 with: name: py${{ matrix.python-version }}_${{ matrix.platform || matrix.os }}.svg - path: dtparse/**/benchmark_*.svg - - - name: debug the action - uses: lhotari/action-upterm@v1 + path: /root/benchmark_*.svg +# +# - name: debug the action +# uses: lhotari/action-upterm@v1 - name: build windows 32bit binaries if: matrix.os == 'windows' From 117c29ae1c71c011bc6acb952c2e185a58be4049 Mon Sep 17 00:00:00 2001 From: Konstantin Gukov Date: Sun, 14 Feb 2021 13:23:51 +0100 Subject: [PATCH 5/6] Another try --- .github/workflows/ci.yml | 10 +++++----- setup.cfg | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d215ef..4268b2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,16 +81,16 @@ jobs: CIBW_BEFORE_BUILD_LINUX: > curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show - CIBW_TEST_COMMAND: "pytest {project}/tests" + CIBW_TEST_COMMAND: "pytest {project}/tests --benchmark-histogram {project}/bench" CIBW_TEST_EXTRAS: test - uses: actions/upload-artifact@v2 with: name: py${{ matrix.python-version }}_${{ matrix.platform || matrix.os }}.svg - path: /root/benchmark_*.svg -# -# - name: debug the action -# uses: lhotari/action-upterm@v1 + path: bench.svg + + - name: debug the action + uses: lhotari/action-upterm@v1 - name: build windows 32bit binaries if: matrix.os == 'windows' diff --git a/setup.cfg b/setup.cfg index 7523794..4db46b2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [tool:pytest] -addopts = --benchmark-histogram --benchmark-min-time=0.00000001 --benchmark-calibration-precision=1 +addopts = --benchmark-min-time=0.00000001 --benchmark-calibration-precision=1 [bdist_wheel] universal = 1 From b54098e42ad2dcc4911ea77318727127b7714867 Mon Sep 17 00:00:00 2001 From: Konstantin Gukov Date: Sun, 14 Feb 2021 17:20:57 +0100 Subject: [PATCH 6/6] Another try --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4268b2e..623f806 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,13 +81,13 @@ jobs: CIBW_BEFORE_BUILD_LINUX: > curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup show - CIBW_TEST_COMMAND: "pytest {project}/tests --benchmark-histogram {project}/bench" + CIBW_TEST_COMMAND: "pytest {project}/tests --benchmark-histogram /tmp/bench" CIBW_TEST_EXTRAS: test - uses: actions/upload-artifact@v2 with: name: py${{ matrix.python-version }}_${{ matrix.platform || matrix.os }}.svg - path: bench.svg + path: /tmp/bench.svg - name: debug the action uses: lhotari/action-upterm@v1