File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 7272 INCLUDED_TAGS : ${{ matrix.included-tags }}
7373 HADOOP_PROFILE : ${{ matrix.hadoop }}
7474 HIVE_PROFILE : ${{ matrix.hive }}
75- # GitHub Actions' default miniconda to use in pip packaging test.
76- CONDA_PREFIX : /usr/share/miniconda
7775 GITHUB_PREV_SHA : ${{ github.event.before }}
7876 SPARK_LOCAL_IP : localhost
7977 steps :
@@ -169,8 +167,6 @@ jobs:
169167 MODULES_TO_TEST : ${{ matrix.modules }}
170168 HADOOP_PROFILE : hadoop3.2
171169 HIVE_PROFILE : hive2.3
172- # GitHub Actions' default miniconda to use in pip packaging test.
173- CONDA_PREFIX : /usr/share/miniconda
174170 GITHUB_PREV_SHA : ${{ github.event.before }}
175171 SPARK_LOCAL_IP : localhost
176172 steps :
@@ -221,10 +217,15 @@ jobs:
221217 run : |
222218 python3.6 -m pip install numpy 'pyarrow<3.0.0' pandas scipy xmlrunner
223219 python3.6 -m pip list
220+ - name : Install Conda for pip packaging test
221+ run : |
222+ curl -s https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > miniconda.sh
223+ bash miniconda.sh -b -p $HOME/miniconda
224224 # Run the tests.
225225 - name : Run tests
226226 run : |
227227 export APACHE_SPARK_REF=${{ steps.sync-branch.outputs.APACHE_SPARK_REF }}
228+ export PATH=$PATH:$HOME/miniconda/bin
228229 ./dev/run-tests --parallelism 2 --modules "$MODULES_TO_TEST"
229230 - name : Upload test results to report
230231 if : always()
Original file line number Diff line number Diff line change @@ -80,10 +80,6 @@ for python in "${PYTHON_EXECS[@]}"; do
8080 VIRTUALENV_PATH=" $VIRTUALENV_BASE " /$python
8181 rm -rf " $VIRTUALENV_PATH "
8282 if [ -n " $USE_CONDA " ]; then
83- if [ -f " $CONDA_PREFIX /etc/profile.d/conda.sh" ]; then
84- # See also https://github.com/conda/conda/issues/7980
85- source " $CONDA_PREFIX /etc/profile.d/conda.sh"
86- fi
8783 conda create -y -p " $VIRTUALENV_PATH " python=$python numpy pandas pip setuptools
8884 source activate " $VIRTUALENV_PATH " || conda activate " $VIRTUALENV_PATH "
8985 else
You can’t perform that action at this time.
0 commit comments