diff --git a/.github/workflows/_run_tests.yml b/.github/workflows/_run_tests.yml index 92436ac9..7689ecf3 100644 --- a/.github/workflows/_run_tests.yml +++ b/.github/workflows/_run_tests.yml @@ -35,17 +35,17 @@ jobs: shell: bash -l {0} run: conda info - name: Install mono + if: ${{ runner.os != 'windows-latest' }} shell: bash -l {0} run: | conda install mono - - name: Perform pip installation with all stable dependencies shell: bash -l {0} run: | cd misc - . ./${{ inputs.install-script }} alphadia ${{ inputs.python-version }} + . ./${{ inputs.install-script }} alphadia ${{ inputs.python-version }} ${{ runner.os != 'windows-latest' }} - name: Run tests shell: bash -l {0} run: | cd tests - . ./${{ inputs.test-script }} alphadia ${{ inputs.python-version }} + . ./${{ inputs.test-script }} alphadia ${{ inputs.python-version }} ${{ runner.os != 'windows-latest' }} diff --git a/misc/pip_install.sh b/misc/pip_install.sh index 2ca0b8b8..b48ee03e 100644 --- a/misc/pip_install.sh +++ b/misc/pip_install.sh @@ -3,8 +3,13 @@ set -e -u INSTALL_TYPE=$1 # stable, loose, etc.. ENV_NAME=${2:-alphadia} PYTHON_VERSION=${3:-3.11} +INSTALL_MONO=${4:-false} -conda create -n $ENV_NAME python=$PYTHON_VERSION mono -y +if [ "$INSTALL_MONO" = "true" ]; then + conda create -n $ENV_NAME python=$PYTHON_VERSION mono -y +else + conda create -n $ENV_NAME python=$PYTHON_VERSION -y +fi if [ "$INSTALL_TYPE" = "loose" ]; then INSTALL_STRING=""