Skip to content

Commit d01da36

Browse files
authored
Merge pull request #94 from raisadz/chore/automate-submodule-and-tests
chore: auto-update submodule and tests and create a PR
2 parents f3bb425 + 6c89409 commit d01da36

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Update Submodule and Run Tests
2+
3+
on:
4+
schedule:
5+
- cron: '0 11 * * 4' # Runs weekly on Thursday at 11 am
6+
7+
env:
8+
PY_COLORS: 1
9+
PYTEST_ADDOPTS: "--numprocesses=logical"
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
jobs:
16+
pytest:
17+
strategy:
18+
matrix:
19+
python-version: ["3.12"]
20+
os: [ubuntu-latest]
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/checkout@v5
24+
- uses: actions/setup-python@v6
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v7
29+
with:
30+
enable-cache: "true"
31+
cache-suffix: pytest-${{ matrix.python-version }}
32+
cache-dependency-glob: "pyproject.toml"
33+
- name: install-reqs
34+
run: |
35+
git submodule update --init --recursive
36+
uv pip install -e narwhals --system
37+
uv pip install -e . --group tests --system
38+
- name: run-submodule-update
39+
run: . utils/submodule_update.sh
40+
- name: update-tests
41+
run: python update_run_tests.py
42+
- name: create-pull-request
43+
uses: peter-evans/create-pull-request@v8
44+
with:
45+
commit-message: 'chore: auto-update tests and submodule'
46+
title: 'chore: auto-update tests and submodule'
47+
branch: chore/test-and-submodule-auto-updates
48+
delete-branch: true

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ and also fetch and install Narwhals as a git submodule:
3030
git submodule update --init --recursive
3131
uv pip install -e narwhals
3232
```
33+
Keep daft to the latest version:
34+
35+
```console
36+
uv pip install daft -U
37+
```
3338

3439
To run the tests:
3540

0 commit comments

Comments
 (0)