Skip to content

Commit acaf263

Browse files
committed
CI: Always install pandas in non-editable mode in CI
1 parent 712b2f6 commit acaf263

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

.github/actions/build_pandas/action.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Build pandas
22
description: Rebuilds the C extensions and installs pandas
33
inputs:
4-
editable:
5-
description: Whether to build pandas in editable mode (default true)
6-
default: true
74
werror:
85
description: Enable werror flag for build
96
default: true
@@ -26,12 +23,5 @@ runs:
2623
shell: bash -el {0}
2724

2825
- name: Build Pandas
29-
run: |
30-
if [[ ${{ inputs.editable }} == "true" ]]; then
31-
pip install -e . --no-build-isolation -v --no-deps \
32-
${{ inputs.werror == 'true' && '-Csetup-args="--werror"' || '' }}
33-
else
34-
pip install . --no-build-isolation -v --no-deps \
35-
${{ inputs.werror == 'true' && '-Csetup-args="--werror"' || '' }}
36-
fi
26+
run: pip install . --no-build-isolation -v --no-deps ${{ inputs.werror == 'true' && '-Csetup-args="--werror"' || '' }}
3727
shell: bash -el {0}

.github/workflows/code-checks.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,9 @@ jobs:
4343
- name: Build Pandas
4444
id: build
4545
uses: ./.github/actions/build_pandas
46-
with:
47-
editable: false
4846

4947
# The following checks are independent of each other and should still be run if one fails
5048

51-
# TODO: The doctests have to be run first right now, since the Cython doctests only work
52-
# with pandas installed in non-editable mode
53-
# This can be removed once pytest-cython doesn't require C extensions to be installed inplace
54-
5549
- name: Extra installs
5650
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions-azure-pipelines-travis-ci-and-gitlab-ci-cd
5751
run: sudo apt-get update && sudo apt-get install -y libegl1 libopengl0
@@ -60,13 +54,6 @@ jobs:
6054
run: cd ci && ./code_checks.sh doctests
6155
if: ${{ steps.build.outcome == 'success' && always() }}
6256

63-
- name: Install pandas in editable mode
64-
id: build-editable
65-
if: ${{ steps.build.outcome == 'success' && always() }}
66-
uses: ./.github/actions/build_pandas
67-
with:
68-
editable: true
69-
7057
- name: Check for no warnings when building single-page docs
7158
run: ci/code_checks.sh single-docs
7259
if: ${{ steps.build.outcome == 'success' && always() }}

0 commit comments

Comments
 (0)