Skip to content

Commit

Permalink
Backport PR #54587 on branch 2.1.x (CI: Enable MacOS Python Dev tests) (
Browse files Browse the repository at this point in the history
#54614)

Backport PR #54587: CI: Enable MacOS Python Dev tests

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and mroeschke committed Aug 18, 2023
1 parent 802e5ee commit f7723bb
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,12 @@ jobs:
env_file: actions-311-numpydev.yaml
pattern: "not slow and not network and not single_cpu"
test_args: "-W error::DeprecationWarning -W error::FutureWarning"
# TODO(cython3): Re-enable once next-beta(after beta 1) comes out
# There are some warnings failing the build with -werror
pandas_ci: "0"
- name: "Pyarrow Nightly"
env_file: actions-311-pyarrownightly.yaml
pattern: "not slow and not network and not single_cpu"
fail-fast: false
name: ${{ matrix.name || format('ubuntu-latest {0}', matrix.env_file) }}
env:
ENV_FILE: ci/deps/${{ matrix.env_file }}
PATTERN: ${{ matrix.pattern }}
EXTRA_APT: ${{ matrix.extra_apt || '' }}
LANG: ${{ matrix.lang || 'C.UTF-8' }}
Expand Down Expand Up @@ -150,14 +146,13 @@ jobs:

- name: Generate extra locales
# These extra locales will be available for locale.setlocale() calls in tests
run: |
sudo locale-gen ${{ matrix.extra_loc }}
run: sudo locale-gen ${{ matrix.extra_loc }}
if: ${{ matrix.extra_loc }}

- name: Set up Conda
uses: ./.github/actions/setup-conda
with:
environment-file: ${{ env.ENV_FILE }}
environment-file: ci/deps/${{ matrix.env_file }}

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

timeout-minutes: 180

Expand All @@ -345,22 +339,15 @@ jobs:
with:
python-version: '3.12-dev'

- name: Install dependencies
- name: Build Environment
run: |
python --version
python -m pip install --upgrade pip setuptools wheel meson[ninja]==1.0.1 meson-python==0.13.1
python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
python -m pip install versioneer[toml]
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
python -m pip list
- name: Build Pandas
run: |
python -m pip install -ve . --no-build-isolation --no-index
python -m pip list
- name: Build Version
run: |
python -c "import pandas; pandas.show_versions();"
- name: Test
- name: Run Tests
uses: ./.github/actions/run-tests

0 comments on commit f7723bb

Please sign in to comment.