Skip to content

Modin implementation of DataFrame API standard #590

Modin implementation of DataFrame API standard

Modin implementation of DataFrame API standard #590

Workflow file for this run

name: ci
on:
pull_request:
push:
branches: [main]
jobs:
tox:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache multiple paths
uses: actions/cache@v3
with:
path: |
~/.cache/pip
$RUNNER_TOOL_CACHE/Python/*
~\AppData\Local\pip\Cache
key: ${{ runner.os }}-build-${{ matrix.python-version }}
- name: install-reqs
run: python -m pip install --upgrade tox virtualenv setuptools pip -r requirements-dev.txt
- name: Run pytest for pandas and polars
run: |
pytest tests --cov=dataframe_api_compat/pandas_standard --cov=tests --cov-append --cov-fail-under=50 --cov-report= --library pandas-numpy
pytest tests --cov=dataframe_api_compat/pandas_standard --cov=tests --cov-append --cov-fail-under=50 --cov-report= --library pandas-nullable
pytest tests --cov=dataframe_api_compat/polars_standard --cov=tests --cov-append --cov-fail-under=95 --library polars-lazy
- name: run polars integration tests
run: pip uninstall pandas -y && pytest tests/integration/upstream_test.py::TestPolars && pip install -U pandas
- name: run pandas integration tests
run: pip uninstall polars -y && pytest tests/integration/upstream_test.py::TestPandas
- name: Update env for modin
run: |
python -m pip uninstall -r requirements-dev.txt -y
python -m pip install -r requirements-dev-modin.txt
- name: Run pytest for modin
run: |
pytest tests --cov=dataframe_api_compat/modin_standard --cov=tests --cov-append --cov-fail-under=100 --library modin
- name: install type-checking reqs
run: python -m pip install 'git+https://github.com/data-apis/dataframe-api.git#egg=dataframe_api&subdirectory=spec/API_specification' mypy typing-extensions
- name: run mypy
run: mypy dataframe_api_compat tests
tox-all-supported:
strategy:
matrix:
python-version: ["3.8"]
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache multiple paths
uses: actions/cache@v3
with:
path: |
~/.cache/pip
$RUNNER_TOOL_CACHE/Python/*
~\AppData\Local\pip\Cache
key: ${{ runner.os }}-build-${{ matrix.python-version }}
- name: install package
run: pip install -e .
- name: install-reqs
run: python -m pip install --pre --upgrade tox virtualenv setuptools pip -r requirements-dev.txt
- name: Run pytest
run: pytest tests --cov=dataframe_api_compat --cov=tests --cov-fail-under=50
# todo: add mypy here too!
- name: run polars integration tests
run: pip uninstall pandas -y && pytest tests/integration/upstream_test.py::TestPolars && pip install -U pandas && pip uninstall polars -y && pytest tests/integration/upstream_test.py::TestPandas