Skip to content

Apache DataFusion SQL Query Engine

ARROW-8272: [CI][Python] Fix test failure on Python 3.5

Krisztián Szűcs4b5ae0ae6206
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 944e7c7fea..c8fa9bde2f 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -34,15 +34,10 @@ on:
jobs:
ubuntu:
- name: AMD64 Ubuntu ${{ matrix.ubuntu }} Python 3
+ name: AMD64 Ubuntu 16.04 Python 3.5
runs-on: ubuntu-latest
- if: github.event_name == 'push'
- strategy:
- fail-fast: false
- matrix:
- ubuntu: [16.04, 18.04]
env:
- UBUNTU: ${{ matrix.ubuntu }}
+ UBUNTU: 16.04
steps:
- name: Checkout Arrow
uses: actions/checkout@v2
@@ -73,16 +68,15 @@ jobs:
-p ${{ secrets.DOCKERHUB_TOKEN }}
docker-compose push ubuntu-python
- conda:
- name: AMD64 Conda Python ${{ matrix.python }}
+ conda-nopandas:
+ name: AMD64 Conda Python ${{ matrix.python }} Without Pandas
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
- python: [3.6, 3.8]
+ python: [3.6]
env:
PYTHON: ${{ matrix.python }}
- PANDAS: latest
steps:
- name: Checkout Arrow
uses: actions/checkout@v2
@@ -96,17 +90,14 @@ jobs:
run: |
docker-compose pull --ignore-pull-failures conda-cpp
docker-compose pull --ignore-pull-failures conda-python
- docker-compose pull --ignore-pull-failures conda-python-pandas
- name: Docker Build
shell: bash
run: |
docker-compose build conda-cpp
docker-compose build conda-python
- docker-compose build conda-python-pandas
- name: Docker Run
shell: bash
- run: |
- docker-compose run conda-python-pandas
+ run: docker-compose run conda-python
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
continue-on-error: true
@@ -114,18 +105,19 @@ jobs:
run: |
docker login -u ${{ secrets.DOCKERHUB_USER }} \
-p ${{ secrets.DOCKERHUB_TOKEN }}
- docker-compose push conda-python-pandas
+ docker-compose push conda-python
- conda-nopandas:
- name: AMD64 Conda Python ${{ matrix.python }} Nopandas
+ conda-pandas:
+ name: AMD64 Conda Python ${{ matrix.python }} Pandas ${{ matrix.pandas }}
runs-on: ubuntu-latest
- if: github.event_name == 'push'
strategy:
fail-fast: false
matrix:
- python: [3.6]
+ python: [3.8]
+ pandas: ["latest"]
env:
PYTHON: ${{ matrix.python }}
+ PANDAS: ${{ matrix.pandas }}
steps:
- name: Checkout Arrow
uses: actions/checkout@v2
@@ -139,14 +131,17 @@ jobs:
run: |
docker-compose pull --ignore-pull-failures conda-cpp
docker-compose pull --ignore-pull-failures conda-python
+ docker-compose pull --ignore-pull-failures conda-python-pandas
- name: Docker Build
shell: bash
run: |
docker-compose build conda-cpp
docker-compose build conda-python
+ docker-compose build conda-python-pandas
- name: Docker Run
shell: bash
- run: docker-compose run conda-python
+ run: |
+ docker-compose run conda-python-pandas
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
continue-on-error: true
@@ -154,10 +149,10 @@ jobs:
run: |
docker login -u ${{ secrets.DOCKERHUB_USER }} \
-p ${{ secrets.DOCKERHUB_TOKEN }}
- docker-compose push conda-python
+ docker-compose push conda-python-pandas
macos:
- name: AMD64 MacOS 10.15 Python 3
+ name: AMD64 MacOS 10.15 Python 3.7
runs-on: macos-latest
env:
ARROW_HOME: /usr/local
diff --git a/.github/workflows/python_cron.yml b/.github/workflows/python_cron.yml
index dc02ace87f..10c17e5c8a 100644
--- a/.github/workflows/python_cron.yml
+++ b/.github/workflows/python_cron.yml
@@ -69,6 +69,45 @@ jobs:
-p ${{ secrets.DOCKERHUB_TOKEN }}
docker-compose push debian-python
+ ubuntu:
+ name: AMD64 Ubuntu ${{ matrix.ubuntu }} Python 3
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ ubuntu: [18.04]
+ env:
+ UBUNTU: ${{ matrix.ubuntu }}
+ steps:
+ - name: Checkout Arrow
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - name: Fetch Submodules and Tags
+ shell: bash
+ run: ci/scripts/util_checkout.sh
+ - name: Docker Pull
+ shell: bash
+ run: |
+ docker-compose pull --ignore-pull-failures ubuntu-cpp
+ docker-compose pull --ignore-pull-failures ubuntu-python
+ - name: Docker Build
+ shell: bash
+ run: |
+ docker-compose build ubuntu-cpp
+ docker-compose build ubuntu-python
+ - name: Docker Run
+ shell: bash
+ run: docker-compose run ubuntu-python
+ - name: Docker Push
+ if: success() && github.repository == 'apache/arrow'
+ continue-on-error: true
+ shell: bash
+ run: |
+ docker login -u ${{ secrets.DOCKERHUB_USER }} \
+ -p ${{ secrets.DOCKERHUB_TOKEN }}
+ docker-compose push ubuntu-python
+
fedora:
name: AMD64 Fedora ${{ matrix.fedora }} Python 3
runs-on: ubuntu-latest
@@ -115,19 +154,21 @@ jobs:
fail-fast: false
matrix:
name:
- - dask
- - hdfs
- - turbodbc
+ - dask-latest
+ - hdfs-2.9.2
+ - turbodbc-latest
- kartothek-latest
- pandas-master
- pandas-0.24
include:
- - name: dask
+ - name: dask-latest
library: dask
- title: Dask
- - name: turbodbc
+ dask: latest
+ title: Dask latest
+ - name: turbodbc-latest
library: turbodbc
- title: Turbodbc
+ turbodbc: latest
+ title: Turbodbc latest
- name: kartothek-latest
library: kartothek
kartothek: latest
@@ -140,13 +181,16 @@ jobs:
library: pandas
title: Pandas master
pandas: master
- - name: hdfs
+ - name: hdfs-2.9.2
library: hdfs
- title: HDFS
+ hdfs: 2.9.2
+ title: HDFS 2.9.2
env:
+ # the defaults here should correspond to the values in .env
PYTHON: 3.7
- DASK: latest
- TURBODBC: latest
+ HDFS: ${{ matrix.hdfs || '2.9.2' }}
+ DASK: ${{ matrix.dask || 'latest' }}
+ TURBODBC: ${{ matrix.turbodbc || 'latest' }}
PANDAS: ${{ matrix.pandas || 'latest' }}
KARTOTHEK: ${{ matrix.kartothek || 'latest' }}
steps: