Skip to content

Commit

Permalink
Merge pull request #1659 from microsoft/andreas/tox2
Browse files Browse the repository at this point in the history
Set Spark env variables in tox for nightly test
  • Loading branch information
miguelgfierro authored Mar 3, 2022
2 parents e9ac6b3 + ebf57d3 commit 1a22b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ 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
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ extras = dev,gpu,examples
# 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 = *
setenv =
PYSPARK_DRIVER_PYTHON = {envpython}
PYSPARK_PYTHON = {envpython}

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

0 comments on commit 1a22b74

Please sign in to comment.