Skip to content

Commit 1a2e0e8

Browse files
troubleshoot
1 parent 51b0306 commit 1a2e0e8

File tree

2 files changed

+36
-30
lines changed

2 files changed

+36
-30
lines changed

.github/actions/build_pandas/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ runs:
1212

1313
- name: Build Pandas
1414
run: |
15+
git checkout main
16+
git status
1517
python setup.py build_ext -j 2
1618
python -m pip install -e . --no-build-isolation --no-use-pep517 --no-index
19+
conda list pandas
1720
shell: bash -el {0}

.github/workflows/bisect.yml

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,24 @@ on:
1515
description: 'GH issue'
1616
required: true
1717

18+
env:
19+
GH_ISSUE: ${{ github.event.inputs.issue }}
20+
ENV_FILE: environment.yml
21+
PANDAS_CI: 1
22+
1823
jobs:
1924
bisect:
2025
runs-on: ubuntu-latest
21-
env:
22-
GH_ISSUE: ${{ github.event.inputs.issue }}
26+
defaults:
27+
run:
28+
shell: bash -el {0}
29+
2330
steps:
24-
- name: Update for build environment
25-
run: |
26-
sudo apt-get update
27-
sudo apt-get install -y build-essential
28-
sudo apt-get clean
29-
- name: Setting conda path
30-
run: echo "$CONDA/bin" >> $GITHUB_PATH
31-
- name: Update conda
32-
run: |
33-
conda config --set quiet true --set always_yes true
34-
conda update -n base -c defaults conda
35-
conda install mamba -n base -c conda-forge
36-
conda list
37-
- name: Checkout pandas
38-
uses: actions/checkout@v2
31+
- name: Checkout
32+
uses: actions/checkout@v3
33+
with:
34+
fetch-depth: 0
35+
3936
- name: Fetch git tags
4037
run: |
4138
git remote -v
@@ -46,19 +43,25 @@ jobs:
4643
cp bisect/runner.sh ..
4744
sudo chmod +x ../runner.sh
4845
ls -latr ..
49-
- name: Update conda environment
50-
run: |
51-
mamba env create -n pandas-dev --file=environment.yml
52-
source activate pandas-dev
53-
conda list
54-
- name: Build pandas
55-
run: |
56-
git checkout main
57-
git status
58-
source activate pandas-dev
59-
python setup.py build_ext -i -j 2
60-
python -m pip install --no-build-isolation -e .
61-
conda list pandas
46+
- name: Cache conda
47+
uses: actions/cache@v3
48+
with:
49+
path: ~/conda_pkgs_dir
50+
key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
51+
52+
- uses: conda-incubator/[email protected]
53+
with:
54+
mamba-version: "*"
55+
channels: conda-forge
56+
activate-environment: pandas-dev
57+
channel-priority: strict
58+
environment-file: ${{ env.ENV_FILE }}
59+
use-only-tar-bz2: true
60+
61+
- name: Build Pandas
62+
id: build
63+
uses: ./.github/actions/build_pandas
64+
6265
- name: Import pandas and print version
6366
run: |
6467
source activate pandas-dev

0 commit comments

Comments
 (0)