Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Spark env variables in nightly test #1655

Merged
merged 1 commit into from
Mar 1, 2022
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
6 changes: 6 additions & 0 deletions .github/workflows/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ runs:
sudo apt-get install -y build-essential libpython3.6 libpython3.7
pip install tox

- name: Set PYSPARK environment variables
shell: bash
run: |
export PYSPARK_DRIVER_PYTHON=$(which python)
export PYSPARK_PYTHON=$(which python)

- name: Run ${{ inputs.test-kind }} tests ('${{ inputs.test-marker }}')
shell: bash
# '-e py' will use the default 'python' executable found in system path
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ extras = dev,gpu,examples
# with this dependency subset, we should be able to run the test markers:
# 1. "spark and not notebook and not spark" (test for spark utilities)
# 2. "spark and notebooks and not spark" (tests for notebook using spark)
# passenv is used for the PYSPARK_PYTHON, PYSPARK_DRIVER_PYTHON env variables
extras = dev,spark,examples
passenv = *

[testenv:all]
# i.e: 'pip install recommenders-*.whl[all]'
Expand Down