From dcd34a6af3dde1dc91d27079a79a05b132e1341d Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Sat, 11 Dec 2021 11:25:49 +0000 Subject: [PATCH 1/4] CI: Creating separate job for benchmarks --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0e898600ba95..da80760bd13b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,6 +78,24 @@ jobs: run: pytest scripts if: always() + benchmarks: + name: Benchmarks + runs-on: ubuntu-latest + + concurrency: + # https://github.community/t/concurrecy-not-work-for-push/183068/7 + group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-web-docs + cancel-in-progress: true + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up pandas + uses: ./.github/actions/setup + - name: Running benchmarks run: | cd asv_bench From 99bfe3d3d355e906b52a57a648cdec6099f1940c Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Tue, 14 Dec 2021 21:16:16 +0000 Subject: [PATCH 2/4] Add missing steps to install dependencies and build pandas --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da80760bd13b8..d7e2be729aab0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,6 +96,22 @@ jobs: - name: Set up pandas uses: ./.github/actions/setup + - name: Cache conda + uses: actions/cache@v2 + with: + path: ~/conda_pkgs_dir + key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }} + + - uses: conda-incubator/setup-miniconda@v2 + with: + activate-environment: pandas-dev + channel-priority: strict + environment-file: ${{ env.ENV_FILE }} + use-only-tar-bz2: true + + - name: Build Pandas + uses: ./.github/actions/build_pandas + - name: Running benchmarks run: | cd asv_bench From 9c76974325f2a80576c2c8cc96461d8fd344da06 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Wed, 15 Dec 2021 11:00:35 +0000 Subject: [PATCH 3/4] Updating CI setup for benchmarks build --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7e2be729aab0..ceb9519d635b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,6 +81,9 @@ jobs: benchmarks: name: Benchmarks runs-on: ubuntu-latest + defaults: + run: + shell: bash -l {0} concurrency: # https://github.community/t/concurrecy-not-work-for-push/183068/7 @@ -93,9 +96,6 @@ jobs: with: fetch-depth: 0 - - name: Set up pandas - uses: ./.github/actions/setup - - name: Cache conda uses: actions/cache@v2 with: From 4705a90d5ca8bb31b9fd867b3325c6e42302a6d2 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Fri, 17 Dec 2021 06:17:28 +0100 Subject: [PATCH 4/4] Update .github/workflows/ci.yml Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com> --- .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 ceb9519d635b6..0bb82ed5d6816 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,7 @@ jobs: concurrency: # https://github.community/t/concurrecy-not-work-for-push/183068/7 - group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-web-docs + group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-benchmarks cancel-in-progress: true steps: