Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/update_submodule_and_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Update Submodule and Run Tests

on:
schedule:
- cron: '0 11 * * 4' # Runs weekly on Thursday at 11 am

env:
PY_COLORS: 1
PYTEST_ADDOPTS: "--numprocesses=logical"

permissions:
contents: write
pull-requests: write

jobs:
pytest:
strategy:
matrix:
python-version: ["3.12"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- 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-${{ matrix.python-version }}
cache-dependency-glob: "pyproject.toml"
- name: install-reqs
run: |
git submodule update --init --recursive
uv pip install -e narwhals --system
uv pip install -e . --group tests --system
- name: run-submodule-update
run: . utils/submodule_update.sh
- name: update-tests
run: python update_run_tests.py
- name: create-pull-request
uses: peter-evans/create-pull-request@v8
with:
commit-message: 'chore: auto-update tests and submodule'
title: 'chore: auto-update tests and submodule'
branch: chore/test-and-submodule-auto-updates
delete-branch: true
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ and also fetch and install Narwhals as a git submodule:
git submodule update --init --recursive
uv pip install -e narwhals
```
Keep daft to the latest version:

```console
uv pip install daft -U
```

To run the tests:

Expand Down