From b9dbf03f8e4ffbbf9427f2ab8ca8f39e376524fc Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Mon, 25 Jan 2021 03:15:15 -0500 Subject: [PATCH] CI: split benchmarks from other checks That job was the longest-running, so this should parallelize them. --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 014c666a17084..104fad09e0472 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,7 @@ jobs: shell: bash -l {0} steps: + - name: Checkout uses: actions/checkout@v1 @@ -68,6 +69,34 @@ jobs: run: pytest --capture=no --strict-markers scripts if: always() + benchmarks: + name: Benchmarks + runs-on: ubuntu-latest + defaults: + run: + shell: bash -l {0} + + steps: + + - name: Checkout + uses: actions/checkout@v1 + + - 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