Skip to content

Commit da012d4

Browse files
committed
Update publish to pypi workflow to separate Daft native runner from Ray distributed runner test cases
1 parent 7894a9e commit da012d4

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,48 @@ on:
33
release:
44
types: [published] # triggered whenever a new GitHub release is published
55
jobs:
6+
test-native-runner:
7+
name: Test (Daft native runner)
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v7
16+
with:
17+
python-version: "3.9"
18+
- name: Install dependencies
19+
run: uv sync --all-extras
20+
- name: Run unit tests (Daft native runner)
21+
run: uv run pytest -m "not distributed and not integration"
22+
env:
23+
DAFT_RUNNER: native
24+
25+
test-distributed-runner:
26+
name: Test (Daft Ray runner)
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0
33+
- name: Install uv
34+
uses: astral-sh/setup-uv@v7
35+
with:
36+
python-version: "3.9"
37+
- name: Install dependencies
38+
run: uv sync --all-extras
39+
- name: Run distributed tests (Daft Ray runner)
40+
run: uv run pytest -m "distributed"
41+
env:
42+
DAFT_RUNNER: ray
43+
644
build-n-publish:
745
name: Build and publish Python distributions to PyPI
846
runs-on: ubuntu-latest
47+
needs: [test-native-runner, test-distributed-runner]
948
steps:
1049
- name: Checkout
1150
uses: actions/checkout@v4
@@ -17,8 +56,6 @@ jobs:
1756
python-version: "3.9"
1857
- name: Install dependencies
1958
run: uv sync --all-extras
20-
- name: Run unit tests
21-
run: uv run pytest -m "not integration"
2259
- name: Echo release tag
2360
run: echo ${{ github.ref_name }}
2461
- name: Build

0 commit comments

Comments
 (0)