Skip to content

Commit

Permalink
Keep the test coverage with Python 3.8 in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Nov 26, 2020
1 parent fb7b870 commit 31755d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,12 @@ def run_python_tests(test_modules, parallelism, with_coverage=False):
if test_modules != [modules.root]:
command.append("--modules=%s" % ','.join(m.name for m in test_modules))
command.append("--parallelism=%i" % parallelism)
if "GITHUB_ACTIONS" in os.environ:
# See SPARK-33565. Python 3.8 was temporarily removed as its default Python executables
# to test because of Jenkins environment issue. Once Jenkins has Python 3.8 to test,
# we should remove this change back and add python3.8 into python/run-tests.py script.
command.append("--python-executable=%s" % ','.join(
x for x in ["python3.6", "python3.8", "pypy3"] if which(x)))
run_cmd(command)

if with_coverage:
Expand Down

0 comments on commit 31755d9

Please sign in to comment.