Skip to content

CI: Test Python 3.10 on MacOS and Windows too #43772

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 16 commits into from
Oct 6, 2021
Merged
23 changes: 18 additions & 5 deletions .github/workflows/python-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,20 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]

name: actions-310-dev
timeout-minutes: 60

env:
NUMPY_WHEELS_AVAILABLE: ${{ matrix.os == 'ubuntu-latest' }}

concurrency:
group: ${{ github.ref }}-dev
group: ${{ github.ref }}-${{ matrix.os }}-dev
cancel-in-progress: ${{github.event_name == 'pull_request'}}

steps:
Expand All @@ -40,12 +48,16 @@ jobs:
python-version: '3.10-dev'

- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
pip install git+https://github.com/pytest-dev/pytest.git
if [[ "$NUMPY_WHEELS_AVAILABLE" == "true" ]]; then
pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
else
pip install git+https://github.com/numpy/numpy.git
fi
pip install git+https://github.com/nedbat/coveragepy.git
pip install cython python-dateutil pytz hypothesis pytest-xdist pytest-cov
pip install cython python-dateutil pytz hypothesis pytest>=6.2.5 pytest-xdist pytest-cov
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this in our requirements-dev?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its 6.0 in requirements dev. 6.2.5 is the first version to support python 3.10

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh ok got it, can you update whatsnew with this as well

pip list

- name: Build Pandas
Expand All @@ -58,6 +70,7 @@ jobs:
python -c "import pandas; pandas.show_versions();"

- name: Test with pytest
shell: bash
run: |
ci/run_tests.sh
# GH 41935
Expand Down
8 changes: 3 additions & 5 deletions pandas/tests/frame/test_reductions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1366,11 +1366,9 @@ def test_min_max_dt64_with_NaT_skipna_false(self, request, tz_naive_fixture):
# GH#36907
tz = tz_naive_fixture
if isinstance(tz, tzlocal) and is_platform_windows():
request.node.add_marker(
pytest.mark.xfail(
reason="GH#37659 OSError raised within tzlocal bc Windows "
"chokes in times before 1970-01-01"
)
pytest.skip(
"GH#37659 OSError raised within tzlocal bc Windows "
"chokes in times before 1970-01-01"
)

df = DataFrame(
Expand Down