Support pandas 2 #187
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 2 | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
pandas-version: ["1.3.5", "1.4.4", "1.5.3", "2.0.3", "2.1.4", "2.2.2"] | |
exclude: | |
- python-version: "3.10" | |
pandas-version: "1.3.5" | |
- python-version: "3.10" | |
pandas-version: "1.4.4" | |
- python-version: "3.8" | |
pandas-version: "2.0.3" | |
- python-version: "3.8" | |
pandas-version: "2.1.4" | |
- python-version: "3.8" | |
pandas-version: "2.2.2" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[spark] | |
pip check | |
pip install nox | |
- name: Run unit tests | |
run: | | |
nox --session "tests(python='${{ matrix.python-version }}', pandas='${{ matrix.pandas-version }}')" | |
env: | |
TD_API_KEY: 1/XXX | |
TD_API_SERVER: https://api.treasure-data.com/ | |
dist-dry-run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
- name: Build and check dist for PiPY (a.k.a dry run) | |
run: | | |
python setup.py sdist bdist_wheel | |
twine check dist/* | |