Skip to content

Commit d8d4522

Browse files
authored
CI: Enable MacOS Python Dev tests (pandas-dev#54587)
* CI: Enable MacOS Python Dev tests * Build virtual environment * Just use euo pipefail instead of l * Revert "Just use euo pipefail instead of l" This reverts commit 3552e77. * Don't use login shell for python dev * Dont use virtual env * Update .github/workflows/unit-tests.yml
1 parent 77bc67a commit d8d4522

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

.github/workflows/unit-tests.yml

+9-22
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,12 @@ jobs:
7777
env_file: actions-311-numpydev.yaml
7878
pattern: "not slow and not network and not single_cpu"
7979
test_args: "-W error::DeprecationWarning -W error::FutureWarning"
80-
# TODO(cython3): Re-enable once next-beta(after beta 1) comes out
81-
# There are some warnings failing the build with -werror
82-
pandas_ci: "0"
8380
- name: "Pyarrow Nightly"
8481
env_file: actions-311-pyarrownightly.yaml
8582
pattern: "not slow and not network and not single_cpu"
8683
fail-fast: false
8784
name: ${{ matrix.name || format('ubuntu-latest {0}', matrix.env_file) }}
8885
env:
89-
ENV_FILE: ci/deps/${{ matrix.env_file }}
9086
PATTERN: ${{ matrix.pattern }}
9187
EXTRA_APT: ${{ matrix.extra_apt || '' }}
9288
LANG: ${{ matrix.lang || 'C.UTF-8' }}
@@ -150,14 +146,13 @@ jobs:
150146

151147
- name: Generate extra locales
152148
# These extra locales will be available for locale.setlocale() calls in tests
153-
run: |
154-
sudo locale-gen ${{ matrix.extra_loc }}
149+
run: sudo locale-gen ${{ matrix.extra_loc }}
155150
if: ${{ matrix.extra_loc }}
156151

157152
- name: Set up Conda
158153
uses: ./.github/actions/setup-conda
159154
with:
160-
environment-file: ${{ env.ENV_FILE }}
155+
environment-file: ci/deps/${{ matrix.env_file }}
161156

162157
- name: Build Pandas
163158
id: build
@@ -312,15 +307,14 @@ jobs:
312307
# to the corresponding posix/windows-macos/sdist etc. workflows.
313308
# Feel free to modify this comment as necessary.
314309
#if: false # Uncomment this to freeze the workflow, comment it to unfreeze
310+
defaults:
311+
run:
312+
shell: bash -eou pipefail {0}
315313
runs-on: ${{ matrix.os }}
316314
strategy:
317315
fail-fast: false
318316
matrix:
319-
# TODO: Disable macOS for now, Github Actions bug where python is not
320-
# symlinked correctly to 3.12
321-
# xref https://github.com/actions/setup-python/issues/701
322-
#os: [ubuntu-22.04, macOS-latest, windows-latest]
323-
os: [ubuntu-22.04, windows-latest]
317+
os: [ubuntu-22.04, macOS-latest, windows-latest]
324318

325319
timeout-minutes: 180
326320

@@ -345,22 +339,15 @@ jobs:
345339
with:
346340
python-version: '3.12-dev'
347341

348-
- name: Install dependencies
342+
- name: Build Environment
349343
run: |
350344
python --version
351345
python -m pip install --upgrade pip setuptools wheel meson[ninja]==1.0.1 meson-python==0.13.1
352346
python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
353347
python -m pip install versioneer[toml]
354348
python -m pip install python-dateutil pytz tzdata cython hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-cov pytest-asyncio>=0.17
355-
python -m pip list
356-
357-
- name: Build Pandas
358-
run: |
359349
python -m pip install -ve . --no-build-isolation --no-index
350+
python -m pip list
360351
361-
- name: Build Version
362-
run: |
363-
python -c "import pandas; pandas.show_versions();"
364-
365-
- name: Test
352+
- name: Run Tests
366353
uses: ./.github/actions/run-tests

0 commit comments

Comments
 (0)