feat: arrow string namespace(s) (#551) #1826
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: ci | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
minimum_versions: | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache multiple paths | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/pip | |
$RUNNER_TOOL_CACHE/Python/* | |
~\AppData\Local\pip\Cache | |
key: ${{ runner.os }}-build-${{ matrix.python-version }} | |
- name: install-minimu-versions | |
run: python -m pip install tox virtualenv setuptools pandas==0.25.3 polars==0.20.3 numpy==1.17.5 pyarrow==11.0.0 scipy==1.5.0 scikit-learn==1.1.0 tzdata | |
- name: install-reqs | |
run: python -m pip install -r requirements-dev.txt | |
- name: show-deps | |
run: pip freeze | |
- name: Run pytest | |
run: pytest tests --cov=narwhals --cov=tests --cov-fail-under=50 --runslow | |
pretty_old_versions: | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache multiple paths | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/pip | |
$RUNNER_TOOL_CACHE/Python/* | |
~\AppData\Local\pip\Cache | |
key: ${{ runner.os }}-build-${{ matrix.python-version }} | |
- name: install-minimu-versions | |
run: python -m pip install tox virtualenv setuptools pandas==1.1.5 polars==0.20.3 numpy==1.17.5 pyarrow==11.0.0 scipy==1.5.0 scikit-learn==1.1.0 tzdata | |
- name: install-reqs | |
run: python -m pip install -r requirements-dev.txt | |
- name: show-deps | |
run: pip freeze | |
- name: Run pytest | |
run: pytest tests --cov=narwhals --cov=tests --cov-fail-under=50 --runslow | |
- name: Run doctests | |
run: pytest narwhals --doctest-modules | |
pandas-nightly: | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache multiple paths | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/pip | |
$RUNNER_TOOL_CACHE/Python/* | |
~\AppData\Local\pip\Cache | |
key: ${{ runner.os }}-build-${{ matrix.python-version }} | |
- name: install-polars | |
run: pip install polars | |
- name: install-reqs | |
run: python -m pip install --upgrade tox virtualenv setuptools pip -r requirements-dev.txt | |
- name: uninstall pyarrow | |
run: python -m pip uninstall pyarrow -y | |
- name: install pyarrow nightly | |
run: python -m pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ --prefer-binary --pre pyarrow | |
- name: uninstall pandas | |
run: python -m pip uninstall pandas -y | |
- name: install-pandas-nightly | |
run: python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple pandas | |
- name: uninstall numpy | |
run: python -m pip uninstall numpy -y | |
- name: install numpy nightly | |
run: python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy | |
- name: show-deps | |
run: pip freeze | |
- name: Run pytest | |
run: pytest tests --cov=narwhals --cov=tests --cov-fail-under=50 --runslow | |
- name: Run doctests | |
run: pytest narwhals --doctest-modules | |
# polars-nightly: | |
# if: github.ref == 'refs/heads/main' | |
# strategy: | |
# matrix: | |
# python-version: ["3.12"] | |
# os: [ubuntu-latest] | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-python@v4 | |
# with: | |
# python-version: ${{ matrix.python-version }} | |
# - name: Cache multiple paths | |
# uses: actions/cache@v4 | |
# with: | |
# path: | | |
# ~/.cache/pip | |
# $RUNNER_TOOL_CACHE/Python/* | |
# ~\AppData\Local\pip\Cache | |
# key: ${{ runner.os }}-build-${{ matrix.python-version }} | |
# - name: install-kaggle | |
# run: python -m pip install kaggle | |
# - name: Download Kaggle notebook artifact | |
# env: | |
# KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }} | |
# KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }} | |
# run: kaggle kernels output marcogorelli/polars-nightly | |
# - name: install-reqs | |
# run: python -m pip install --upgrade tox virtualenv setuptools pip -r requirements-dev.txt | |
# - name: uninstall polars | |
# run: python -m pip uninstall polars -y | |
# - name: install-modin-pandas | |
# run: pip install modin[dask] pandas | |
# - name: install-polars-nightly | |
# run: python -m pip install *.whl | |
# - name: Run pytest | |
# run: pytest tests --cov=narwhals --cov=tests --cov-fail-under=50 | |
# - name: Run doctests | |
# run: pytest narwhals --doctest-modules |