diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.yml index 48da25078..f3e91d0bc 100644 --- a/.github/workflows/test_suite.yml +++ b/.github/workflows/test_suite.yml @@ -25,22 +25,23 @@ jobs: # run: sudo chown -R $UID $CONDA # if: runner.os == 'macOS' + - name: HACK! remove default conda + run: sudo unlink /usr/bin/conda + - name: Install IC run: | - source $CONDA/etc/profile.d/conda.sh source manage.sh work_in_python_version_no_tests ${{ matrix.python-version }} - - name: Run tests run: | + source scripts/setup_conda_gha.sh set -o pipefail # necessary for test failure to propagate to `tee` - source $CONDA/etc/profile.d/conda.sh source manage.sh work_in_python_version_no_tests ${{ matrix.python-version }} PYTEST_ADDOPTS=--color=yes HYPOTHESIS_PROFILE=travis-ci bash manage.sh run_tests_par | tee pytest_output - name: Test warning-catching script run: | - source $CONDA/etc/profile.d/conda.sh + source scripts/setup_conda_gha.sh source manage.sh work_in_python_version_no_tests ${{ matrix.python-version }} # write dummy tests diff --git a/manage.sh b/manage.sh index 16c63a65c..ca9e91b3a 100644 --- a/manage.sh +++ b/manage.sh @@ -60,7 +60,7 @@ function install_conda { echo Conda already installed. Skipping conda installation. else echo Installing conda for $CONDA_OS - CONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-py${PYTHON_VERSION//.}_4.9.2-${CONDA_OS}-x86_64.sh" + CONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-py${PYTHON_VERSION//.}_23.11.0-2-${CONDA_OS}-x86_64.sh" if which wget; then wget ${CONDA_URL} -O miniconda.sh else diff --git a/scripts/setup_conda_gha.sh b/scripts/setup_conda_gha.sh new file mode 100644 index 000000000..7ed63f330 --- /dev/null +++ b/scripts/setup_conda_gha.sh @@ -0,0 +1,3 @@ +export CONDA=$HOME/miniconda +export PATH=$CONDA/bin:$PATH +source $CONDA/etc/profile.d/conda.sh