Skip to content

Commit

Permalink
chore: spark inspects spark remote; avoid setting it for non-remote t…
Browse files Browse the repository at this point in the history
…hings
  • Loading branch information
cpcloud committed Sep 20, 2024
1 parent 467f714 commit 48ff420
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ibis-backends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -666,15 +666,13 @@ jobs:
- "'pandas@<2'"
- "'numpy@<1.24'"
tag: local
SPARK_REMOTE: ""
- python-version: "3.11"
pyspark-version: "3.5.2"
pyspark-minor-version: "3.5"
deps:
- "'pandas@>2'"
- "'numpy@>1.24'"
tag: local
SPARK_REMOTE: ""
- python-version: "3.12"
pyspark-version: "3.5.2"
pyspark-minor-version: "3.5"
Expand All @@ -683,7 +681,6 @@ jobs:
- "'numpy@>1.24'"
- setuptools
tag: local
SPARK_REMOTE: ""
- python-version: "3.12"
pyspark-version: "3.5.2"
pyspark-minor-version: "3.5"
Expand All @@ -705,7 +702,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: start services
if: ${{ matrix.tag == 'remote' }}
if: matrix.tag == 'remote'
run: just up spark-connect

- name: download backend data
Expand Down Expand Up @@ -747,11 +744,16 @@ jobs:
shell: bash
run: just download-iceberg-jar ${{ matrix.pyspark-minor-version }}

- name: run tests
- name: run spark connect tests
if: matrix.tag == 'remote'
run: just ci-check -m pyspark
env:
SPARK_REMOTE: ${{ matrix.SPARK_REMOTE }}

- name: run spark tests
if: matrix.tag == 'local'
run: just ci-check -m pyspark

- name: check that no untracked files were produced
shell: bash
run: git checkout poetry.lock pyproject.toml && ! git status --porcelain | tee /dev/stderr | grep .
Expand Down

0 comments on commit 48ff420

Please sign in to comment.