-
Notifications
You must be signed in to change notification settings - Fork 182
40 lines (36 loc) · 1.11 KB
/
random_ci_pytest.yml
File metadata and controls
40 lines (36 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Random Versions
on:
pull_request:
env:
PY_COLORS: 1
PYTEST_ADDOPTS: "--numprocesses=logical"
jobs:
tox:
strategy:
matrix:
python-version: ["3.9"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
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=narwhals --cov=tests --cov-fail-under=75 \
--constructors=pandas,pyarrow,polars[eager],polars[lazy]