Skip to content

Commit

Permalink
q20, revert nightly experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Sep 12, 2024
1 parent fa543f7 commit daae61d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 14 deletions.
53 changes: 41 additions & 12 deletions .github/workflows/extremes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
- name: Run doctests
run: pytest narwhals --doctest-modules

nightlies:
pandas-nightly-and-dask:
strategy:
matrix:
python-version: ["3.12"]
Expand All @@ -97,8 +97,6 @@ jobs:
run: uv pip install polars --system
- name: install-reqs
run: uv pip install --upgrade tox virtualenv setuptools pip -r requirements-dev.txt --system
- name: uninstall polars
run: uv pip uninstall polars --system
- name: uninstall pyarrow
run: uv pip uninstall pyarrow --system
# - name: install pyarrow nightly
Expand All @@ -114,19 +112,50 @@ jobs:
- name: install dask
run: |
python -m pip install git+https://github.com/dask/distributed git+https://github.com/dask/dask git+https://github.com/dask/dask-expr
- 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/variable-brink-glacier
- name: install-polars-nightly
run: python -m pip install *.whl
- name: show-deps
run: uv 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@v5
# 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
4 changes: 2 additions & 2 deletions tpch/execute/q20.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
fn = IO_FUNCS["pandas[pyarrow]"]
print(q20.query(fn(part), fn(partsupp), fn(nation), fn(lineitem), fn(supplier)))

fn = IO_FUNCS["polars[lazy]"]
print(q20.query(fn(part), fn(partsupp), fn(nation), fn(lineitem), fn(supplier)).collect())
fn = IO_FUNCS["polars[eager]"]
print(q20.query(fn(part), fn(partsupp), fn(nation), fn(lineitem), fn(supplier)))

fn = IO_FUNCS["pyarrow"]
print(q20.query(fn(part), fn(partsupp), fn(nation), fn(lineitem), fn(supplier)))

0 comments on commit daae61d

Please sign in to comment.