Skip to content

feat(RFC): A richer Expr IR #11219

feat(RFC): A richer Expr IR

feat(RFC): A richer Expr IR #11219

name: Random Versions
on:
pull_request:
env:
PY_COLORS: 1
PYTEST_ADDOPTS: "--numprocesses=logical"
permissions:
contents: read
jobs:
tox:
strategy:
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
enable-cache: "true"
cache-suffix: pytest-random-ci-${{ matrix.python-version }}
cache-dependency-glob: "pyproject.toml"
- name: generate-random-versions
run: python utils/generate_random_versions.py
- name: install-random-versions
run: uv pip install -r random-requirements.txt --system
- name: install-narwhals
run: uv pip install -e . --group tests --system
- name: show versions
run: uv pip freeze
- name: Run pytest
run: |
pytest tests --cov=src --cov=tests --cov-fail-under=75 \
--constructors=pandas,pyarrow,polars[eager],polars[lazy]