diff --git a/.github/workflows/extremes.yml b/.github/workflows/extremes.yml index 858d0b6e2..611d914c0 100644 --- a/.github/workflows/extremes.yml +++ b/.github/workflows/extremes.yml @@ -24,14 +24,14 @@ jobs: enable-cache: "true" cache-suffix: ${{ matrix.python-version }} cache-dependency-glob: "**requirements*.txt" + - name: install-reqs + run: uv sync --extra dev --upgrade - name: install-minimum-versions run: uv 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 --system - - name: install-reqs - run: uv pip install -r requirements-dev.txt --system - name: show-deps run: uv pip freeze - name: Run pytest - run: pytest tests --cov=narwhals --cov=tests --cov-fail-under=50 --runslow + run: uv run pytest tests --cov=narwhals --cov=tests --cov-fail-under=50 --runslow pretty_old_versions: strategy: @@ -51,16 +51,16 @@ jobs: enable-cache: "true" cache-suffix: ${{ matrix.python-version }} cache-dependency-glob: "**requirements*.txt" + - name: install-reqs + run: uv sync --extra dev --upgrade - name: install-minimum-versions run: uv 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 --system - - name: install-reqs - run: uv pip install -r requirements-dev.txt --system - name: show-deps run: uv pip freeze - name: Run pytest - run: pytest tests --cov=narwhals --cov=tests --cov-fail-under=50 --runslow + run: uv run pytest tests --cov=narwhals --cov=tests --cov-fail-under=50 --runslow - name: Run doctests - run: pytest narwhals --doctest-modules + run: uv run pytest narwhals --doctest-modules not_so_old_versions: strategy: @@ -80,16 +80,16 @@ jobs: enable-cache: "true" cache-suffix: ${{ matrix.python-version }} cache-dependency-glob: "**requirements*.txt" + - name: install-reqs + run: uv sync --extra dev --upgrade - name: install-minimum-versions run: uv pip install tox virtualenv setuptools pandas==2.0.3 polars==0.20.8 numpy==1.24.4 pyarrow==14.0.0 scipy==1.8.0 scikit-learn==1.3.0 dask[dataframe]==2024.7 tzdata --system - - name: install-reqs - run: uv pip install -r requirements-dev.txt --system - name: show-deps run: uv pip freeze - name: Run pytest - run: pytest tests --cov=narwhals --cov=tests --cov-fail-under=50 --runslow + run: uv run pytest tests --cov=narwhals --cov=tests --cov-fail-under=50 --runslow - name: Run doctests - run: pytest narwhals --doctest-modules + run: uv run pytest narwhals --doctest-modules nightlies: strategy: diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 20058a435..ab5c0e8c9 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -24,15 +24,17 @@ jobs: enable-cache: "true" cache-suffix: ${{ matrix.python-version }} cache-dependency-glob: "**requirements*.txt" + - name: sync + run: uv sync --extra dev --upgrade - name: install-reqs - run: uv pip install --upgrade tox virtualenv setuptools -r requirements-dev.txt --system + run: uv pip install --upgrade tox virtualenv setuptools --system - name: show-deps run: uv pip freeze - name: Run pytest - run: pytest tests --cov=narwhals --cov=tests --cov-fail-under=85 + run: uv run pytest tests --cov=narwhals --cov=tests --cov-fail-under=85 - name: Run doctests if: startsWith(matrix.os, 'windows') != true - run: pytest narwhals --doctest-modules + run: uv run pytest narwhals --doctest-modules pytest-windows: strategy: @@ -52,16 +54,18 @@ jobs: enable-cache: "true" cache-suffix: ${{ matrix.python-version }} cache-dependency-glob: "**requirements*.txt" + - name: sync + run: uv sync --extra dev --upgrade - name: install-reqs - run: uv pip install --upgrade tox virtualenv setuptools -r requirements-dev.txt --system + run: uv pip install --upgrade tox virtualenv setuptools --system - name: install-modin run: uv pip install --upgrade modin[dask] --system - name: show-deps run: uv pip freeze - name: Run pytest - run: pytest tests --cov=narwhals --cov=tests --runslow --cov-fail-under=95 + run: uv run pytest tests --cov=narwhals --cov=tests --runslow --cov-fail-under=95 - name: Run doctests - run: pytest narwhals --doctest-modules + run: uv run pytest narwhals --doctest-modules pytest-coverage: strategy: @@ -81,8 +85,10 @@ jobs: enable-cache: "true" cache-suffix: ${{ matrix.python-version }} cache-dependency-glob: "**requirements*.txt" + - name: sync + run: uv sync --extra dev --upgrade - name: install-reqs - run: uv pip install --upgrade tox virtualenv setuptools -r requirements-dev.txt --system + run: uv pip install --upgrade tox virtualenv setuptools --system - name: install-modin run: uv pip install --upgrade modin[dask] --system - name: show-deps @@ -93,6 +99,6 @@ jobs: # which messes with other dependencies on lower Python versions if: matrix.python-version == '3.12' - name: Run pytest - run: pytest tests --cov=narwhals --cov=tests --cov-fail-under=100 --runslow + run: uv run pytest tests --cov=narwhals --cov=tests --cov-fail-under=100 --runslow - name: Run doctests - run: pytest narwhals --doctest-modules + run: uv run pytest narwhals --doctest-modules