15
15
description : ' GH issue'
16
16
required : true
17
17
18
+ env :
19
+ GH_ISSUE : ${{ github.event.inputs.issue }}
20
+ ENV_FILE : environment.yml
21
+ PANDAS_CI : 1
22
+
18
23
jobs :
19
24
bisect :
20
25
runs-on : ubuntu-latest
21
- env :
22
- GH_ISSUE : ${{ github.event.inputs.issue }}
26
+ defaults :
27
+ run :
28
+ shell : bash -el {0}
29
+
23
30
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
+
39
36
- name : Fetch git tags
40
37
run : |
41
38
git remote -v
@@ -46,19 +43,25 @@ jobs:
46
43
cp bisect/runner.sh ..
47
44
sudo chmod +x ../runner.sh
48
45
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
+
62
65
- name : Import pandas and print version
63
66
run : |
64
67
source activate pandas-dev
0 commit comments