Skip to content

Commit

Permalink
Ci: start testing py310-dev (pandas-dev#41113)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangchenli authored and JulianWgs committed Jul 3, 2021
1 parent ce50e99 commit 5c5c395
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/python-dev.yml
@@ -0,0 +1,70 @@
name: Python Dev

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
name: actions-310-dev
timeout-minutes: 60

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python Dev Version
uses: actions/setup-python@v2
with:
python-version: '3.10-dev'

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install git+https://github.com/numpy/numpy.git
pip install git+https://github.com/pytest-dev/pytest.git
pip install git+https://github.com/nedbat/coveragepy.git
pip install cython python-dateutil pytz hypothesis pytest-xdist
pip list
- name: Build Pandas
run: |
python setup.py build_ext -q -j2
python -m pip install -e . --no-build-isolation --no-use-pep517
- name: Build Version
run: |
python -c "import pandas; pandas.show_versions();"
- name: Test with pytest
run: |
coverage run -m pytest -m 'not slow and not network and not clipboard' pandas
continue-on-error: true

- name: Publish test results
uses: actions/upload-artifact@master
with:
name: Test results
path: test-data.xml
if: failure()

- name: Print skipped tests
run: |
python ci/print_skipped.py
- name: Report Coverage
run: |
coverage report -m
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
flags: unittests
name: codecov-pandas
fail_ci_if_error: true
1 change: 1 addition & 0 deletions pandas/compat/__init__.py
Expand Up @@ -23,6 +23,7 @@

PY38 = sys.version_info >= (3, 8)
PY39 = sys.version_info >= (3, 9)
PY310 = sys.version_info >= (3, 10)
PYPY = platform.python_implementation() == "PyPy"
IS64 = sys.maxsize > 2 ** 32

Expand Down
3 changes: 3 additions & 0 deletions pandas/tests/io/json/test_pandas.py
Expand Up @@ -12,6 +12,7 @@
from pandas.compat import (
IS64,
PY38,
PY310,
is_platform_windows,
)
import pandas.util._test_decorators as td
Expand All @@ -27,6 +28,8 @@
)
import pandas._testing as tm

pytestmark = pytest.mark.skipif(PY310, reason="timeout with coverage")

_seriesd = tm.getSeriesData()

_frame = DataFrame(_seriesd)
Expand Down

0 comments on commit 5c5c395

Please sign in to comment.