Skip to content

CI: share pandas setup steps #39745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/actions/build_pandas/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build pandas
description: Rebuilds the C extensions and installs pandas
runs:
using: composite
steps:

- name: Environment Detail
run: |
conda info
conda list
shell: bash -l {0}

- name: Build Pandas
run: |
python setup.py build_ext -j 2
python -m pip install -e . --no-build-isolation --no-use-pep517
shell: bash -l {0}
12 changes: 12 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Set up pandas
description: Runs all the setup steps required to have a built pandas ready to use
runs:
using: composite
steps:
- name: Setting conda path
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
shell: bash -l {0}

- name: Setup environment and build pandas
run: ci/setup_env.sh
shell: bash -l {0}
23 changes: 5 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,8 @@ jobs:
environment-file: ${{ env.ENV_FILE }}
use-only-tar-bz2: true

- name: Environment Detail
run: |
conda info
conda list

- name: Build Pandas
run: |
python setup.py build_ext -j 2
python -m pip install -e . --no-build-isolation --no-use-pep517
uses: ./.github/actions/build_pandas

- name: Linting
run: ci/code_checks.sh lint
Expand Down Expand Up @@ -100,14 +93,11 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Setting conda path
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH

- name: Checkout
uses: actions/checkout@v1

- name: Setup environment and build pandas
run: ci/setup_env.sh
- name: Set up pandas
uses: ./.github/actions/setup

- name: Build website
run: |
Expand Down Expand Up @@ -144,14 +134,11 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Setting conda path
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH

- name: Checkout
uses: actions/checkout@v1

- name: Setup environment and build pandas
run: ci/setup_env.sh
- name: Set up pandas
uses: ./.github/actions/setup

- name: Run tests
run: |
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,8 @@ jobs:
environment-file: ${{ env.ENV_FILE }}
use-only-tar-bz2: true

- name: Environment Detail
run: |
conda info
conda list

- name: Build Pandas
run: |
python setup.py build_ext -j 2
python -m pip install -e . --no-build-isolation --no-use-pep517
uses: ./.github/actions/build_pandas

- name: Test
run: ci/run_tests.sh
Expand Down Expand Up @@ -158,15 +151,8 @@ jobs:
environment-file: ${{ env.ENV_FILE }}
use-only-tar-bz2: true

- name: Environment Detail
run: |
conda info
conda list

- name: Build Pandas
run: |
python setup.py build_ext -j 2
python -m pip install -e . --no-build-isolation --no-use-pep517
uses: ./.github/actions/build_pandas

- name: Test
run: ci/run_tests.sh
Expand Down