Skip to content

Commit

Permalink
no mono for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Dec 20, 2024
1 parent 8cb6e1b commit b00c6de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/_run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
7 changes: 6 additions & 1 deletion misc/pip_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down

0 comments on commit b00c6de

Please sign in to comment.