Skip to content

Commit 6b44235

Browse files
committed
CI: Enable MacOS Python Dev tests
1 parent ff86177 commit 6b44235

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

.github/workflows/unit-tests.yml

+11-17
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
@@ -316,11 +311,7 @@ jobs:
316311
strategy:
317312
fail-fast: false
318313
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]
314+
os: [ubuntu-22.04, macOS-latest, windows-latest]
324315

325316
timeout-minutes: 180
326317

@@ -342,25 +333,28 @@ jobs:
342333

343334
- name: Set up Python Dev Version
344335
uses: actions/setup-python@v4
336+
id: pydev
345337
with:
346338
python-version: '3.12-dev'
347339

340+
- name: Update Python Path
341+
# xref https://github.com/actions/setup-python/issues/701
342+
run: PATH=${{ steps.pydev.outputs.python-path }}:$PATH
343+
if: ${{ matrix.os == 'macOS-latest'}}
344+
348345
- name: Install dependencies
349346
run: |
350347
python --version
351348
python -m pip install --upgrade pip setuptools wheel meson[ninja]==1.0.1 meson-python==0.13.1
352349
python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
353350
python -m pip install versioneer[toml]
354351
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
356352
357353
- name: Build Pandas
358-
run: |
359-
python -m pip install -ve . --no-build-isolation --no-index
354+
run: python -m pip install -ve . --no-build-isolation --no-index
360355

361356
- name: Build Version
362-
run: |
363-
python -c "import pandas; pandas.show_versions();"
357+
run: python -m pip list
364358

365359
- name: Test
366360
uses: ./.github/actions/run-tests

0 commit comments

Comments
 (0)