Skip to content

Commit

Permalink
Backport PR #43772: CI: Test Python 3.10 on MacOS and Windows too (#4…
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomas1 committed Oct 9, 2021
1 parent c5b24da commit cc22e57
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/python-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,22 @@ 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 }}-${{ matrix.os }}-dev
cancel-in-progress: ${{github.event_name == 'pull_request'}}

steps:
- uses: actions/checkout@v2
with:
Expand All @@ -36,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
pip list
- name: Build Pandas
Expand All @@ -54,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

0 comments on commit cc22e57

Please sign in to comment.