diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml new file mode 100644 index 0000000000000..2643dc5ec656e --- /dev/null +++ b/.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 diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index cddab28476ae2..af2dfe796f82d 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -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 diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index dc94354728ef6..3cc77aa723fe9 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -12,6 +12,7 @@ from pandas.compat import ( IS64, PY38, + PY310, is_platform_windows, ) import pandas.util._test_decorators as td @@ -27,6 +28,8 @@ ) import pandas._testing as tm +pytestmark = pytest.mark.skipif(PY310, reason="timeout with coverage") + _seriesd = tm.getSeriesData() _frame = DataFrame(_seriesd)