Skip to content

Commit 93a2de2

Browse files
committed
CI: split benchmarks from other checks
That job was the longest-running, so this should parallelize them.
1 parent d5bb66f commit 93a2de2

File tree

1 file changed

+39
-23
lines changed

1 file changed

+39
-23
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,17 @@ jobs:
2121
shell: bash -l {0}
2222

2323
steps:
24+
2425
- name: Checkout
2526
uses: actions/checkout@v1
2627

28+
- name: Set up pandas
29+
uses: ./.github/actions/setup
30+
2731
- name: Looking for unwanted patterns
2832
run: ci/code_checks.sh patterns
2933
if: always()
3034

31-
- name: Cache conda
32-
uses: actions/cache@v2
33-
with:
34-
path: ~/conda_pkgs_dir
35-
key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
36-
37-
- uses: conda-incubator/setup-miniconda@v2
38-
with:
39-
activate-environment: pandas-dev
40-
channel-priority: strict
41-
environment-file: ${{ env.ENV_FILE }}
42-
use-only-tar-bz2: true
43-
44-
- name: Environment Detail
45-
run: |
46-
conda info
47-
conda list
48-
49-
- name: Build Pandas
50-
run: |
51-
python setup.py build_ext -j 2
52-
python -m pip install -e . --no-build-isolation --no-use-pep517
53-
5435
- name: Linting
5536
run: ci/code_checks.sh lint
5637
if: always()
@@ -75,6 +56,41 @@ jobs:
7556
run: pytest --capture=no --strict-markers scripts
7657
if: always()
7758

59+
benchmarks:
60+
name: Benchmarks
61+
runs-on: ubuntu-latest
62+
defaults:
63+
run:
64+
shell: bash -l {0}
65+
66+
steps:
67+
68+
- name: Checkout
69+
uses: actions/checkout@v1
70+
71+
- name: Cache conda
72+
uses: actions/cache@v2
73+
with:
74+
path: ~/conda_pkgs_dir
75+
key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
76+
77+
- uses: conda-incubator/setup-miniconda@v2
78+
with:
79+
activate-environment: pandas-dev
80+
channel-priority: strict
81+
environment-file: ${{ env.ENV_FILE }}
82+
use-only-tar-bz2: true
83+
84+
- name: Environment Detail
85+
run: |
86+
conda info
87+
conda list
88+
89+
- name: Build Pandas
90+
run: |
91+
python setup.py build_ext -j 2
92+
python -m pip install -e . --no-build-isolation --no-use-pep517
93+
7894
- name: Running benchmarks
7995
run: |
8096
cd asv_bench

0 commit comments

Comments
 (0)