Skip to content

Commit 39736d2

Browse files
committed
Undo more changes
1 parent 15ccca5 commit 39736d2

File tree

16 files changed

+485
-169
lines changed

16 files changed

+485
-169
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
PANDAS_CI: "1"
1414
steps:
1515
- checkout
16-
- run: .circleci/setup_env.sh
16+
- run: ci/setup_env.sh
1717
- run: PATH=$HOME/miniconda3/envs/pandas-dev/bin:$HOME/miniconda3/condabin:$PATH ci/run_tests.sh
1818

1919
workflows:
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build pandas
2+
description: Rebuilds the C extensions and installs pandas
3+
runs:
4+
using: composite
5+
steps:
6+
7+
- name: Environment Detail
8+
run: |
9+
conda info
10+
conda list
11+
shell: bash -l {0}
12+
13+
- name: Build Pandas
14+
run: |
15+
python setup.py build_ext -j 2
16+
python -m pip install -e . --no-build-isolation --no-use-pep517 --no-index
17+
shell: bash -l {0}

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ runs:
3535
shell: bash
3636

3737
- name: Install ${{ inputs.environment-file }} (Python ${{ inputs.python-version }})
38-
uses: conda-incubator/setup-miniconda@v2
38+
uses: conda-incubator/setup-miniconda@v2.1.1
3939
with:
4040
activate-environment: ${{ inputs.environment-name }}
4141
environment-file: ${{ inputs.environment-file }}

.github/workflows/asv-bot.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- created
77

88
env:
9-
COMMENT: ${{ github.event.comment.body }}
9+
ENV_FILE: environment.yml
10+
COMMENT: ${{github.event.comment.body}}
1011

1112
jobs:
1213
autotune:
@@ -32,10 +33,20 @@ jobs:
3233
with:
3334
fetch-depth: 0
3435

35-
# Although asv sets up its own env, deps are still needed
36-
# during discovery process
37-
- name: Set up Conda
38-
uses: ./.github/actions/setup
36+
- name: Cache conda
37+
uses: actions/cache@v2
38+
with:
39+
path: ~/conda_pkgs_dir
40+
key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
41+
42+
# Although asv sets up its own env, deps are still needed
43+
# during discovery process
44+
- uses: conda-incubator/[email protected]
45+
with:
46+
activate-environment: pandas-dev
47+
channel-priority: strict
48+
environment-file: ${{ env.ENV_FILE }}
49+
use-only-tar-bz2: true
3950

4051
- name: Run benchmarks
4152
id: bench

.github/workflows/code-checks.yml

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- 1.4.x
1212

1313
env:
14+
ENV_FILE: environment.yml
1415
PANDAS_CI: 1
1516

1617
jobs:
@@ -51,13 +52,20 @@ jobs:
5152
with:
5253
fetch-depth: 0
5354

54-
- name: Set up Conda
55-
uses: ./.github/actions/setup
55+
- name: Cache conda
56+
uses: actions/cache@v2
57+
with:
58+
path: ~/conda_pkgs_dir
59+
key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
5660

57-
- name: Build Pandas
58-
uses: ./.github/actions/build-pandas
59-
id: build
60-
continue-on-error: true
61+
- uses: conda-incubator/[email protected]
62+
with:
63+
mamba-version: "*"
64+
channels: conda-forge
65+
activate-environment: pandas-dev
66+
channel-priority: strict
67+
environment-file: ${{ env.ENV_FILE }}
68+
use-only-tar-bz2: true
6169

6270
- name: Install node.js (for pyright)
6371
uses: actions/setup-node@v2
@@ -68,6 +76,10 @@ jobs:
6876
# note: keep version in sync with .pre-commit-config.yaml
6977
run: npm install -g [email protected]
7078

79+
- name: Build Pandas
80+
id: build
81+
uses: ./.github/actions/build_pandas
82+
7183
- name: Run checks on imported code
7284
run: ci/code_checks.sh code
7385
if: ${{ steps.build.outcome == 'success' }}
@@ -106,11 +118,24 @@ jobs:
106118
with:
107119
fetch-depth: 0
108120

109-
- name: Set up Conda
110-
uses: ./.github/actions/setup
121+
- name: Cache conda
122+
uses: actions/cache@v2
123+
with:
124+
path: ~/conda_pkgs_dir
125+
key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
126+
127+
- uses: conda-incubator/[email protected]
128+
with:
129+
mamba-version: "*"
130+
channels: conda-forge
131+
activate-environment: pandas-dev
132+
channel-priority: strict
133+
environment-file: ${{ env.ENV_FILE }}
134+
use-only-tar-bz2: true
111135

112136
- name: Build Pandas
113-
uses: ./.github/actions/build-pandas
137+
id: build
138+
uses: ./.github/actions/build_pandas
114139

115140
- name: Run ASV benchmarks
116141
run: |
@@ -123,6 +148,7 @@ jobs:
123148
if grep "failed" benchmarks.log > /dev/null ; then
124149
exit 1
125150
fi
151+
if: ${{ steps.build.outcome == 'success' }}
126152

127153
- name: Publish benchmarks artifact
128154
uses: actions/upload-artifact@v2

.github/workflows/docbuild-and-upload.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- 1.4.x
1212

1313
env:
14+
ENV_FILE: environment.yml
1415
PANDAS_CI: 1
1516

1617
jobs:
@@ -32,17 +33,17 @@ jobs:
3233
with:
3334
fetch-depth: 0
3435

35-
- name: Set up Conda
36+
- name: Set up pandas
3637
uses: ./.github/actions/setup
3738

38-
- name: Build pandas
39-
uses: ./.github/actions/build-pandas
40-
4139
- name: Build website
42-
run: python web/pandas_web.py web/pandas --target-path=web/build
43-
40+
run: |
41+
source activate pandas-dev
42+
python web/pandas_web.py web/pandas --target-path=web/build
4443
- name: Build documentation
45-
run: doc/make.py --warnings-are-errors
44+
run: |
45+
source activate pandas-dev
46+
doc/make.py --warnings-are-errors
4647
4748
- name: Install ssh key
4849
run: |

.github/workflows/macos-windows.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)