Skip to content

Commit 0423fa0

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

File tree

1 file changed

+38
-25
lines changed

1 file changed

+38
-25
lines changed

.github/workflows/ci.yml

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

2323
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v1
24+
25+
- name: Set up pandas
26+
uses: .github/actions/setup
2627

2728
- name: Looking for unwanted patterns
2829
run: ci/code_checks.sh patterns
2930
if: always()
3031

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-
5432
- name: Linting
5533
run: ci/code_checks.sh lint
5634
if: always()
@@ -75,6 +53,41 @@ jobs:
7553
run: pytest --capture=no --strict-markers scripts
7654
if: always()
7755

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

0 commit comments

Comments
 (0)