Skip to content

Commit

Permalink
Change to double brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed May 2, 2024
1 parent 57f655b commit 7887266
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ runs:
run: |
JOB="${{inputs.target}}/${{inputs.python}}${{inputs.other}}"
echo "GHA_JOBNAME=$JOB" | sed 's|/|_|g' >> $GITHUB_ENV
if [ ${{ inputs.slim }} != '' ]; then
if [[ ${{ inputs.slim }} != '' ]]; then
echo "GHA_JOBGROUP=${{inputs.target}}" >> $GITHUB_ENV
else
echo "GHA_JOBGROUP=other" >> $GITHUB_ENV
fi
# Note: pandas 1.0.3 causes gams 29.1.0 import to fail in python 3.8
EXTRAS=tests
if [ ${{ inputs.slim }} != '' ]; then
if [[ ${{ inputs.slim }} != '' ]]; then
EXTRAS="$EXTRAS,docs,optional"
fi
echo "EXTRAS=$EXTRAS" >> $GITHUB_ENV
Expand Down Expand Up @@ -179,7 +179,7 @@ runs:
python -m pip install --cache-dir cache/pip ${PACKAGES}
python -m pip install --cache-dir cache/pip pymysql || \
python -m pip install --cache-dir cache/pip pymysql
if [ ${{ inputs.slim }} != '' ]; then
if [[ ${{ inputs.slim }} != '' ]]; then
python -m pip install --cache-dir cache/pip cplex docplex \
|| echo "WARNING: CPLEX Community Edition is not available"
python -m pip install --cache-dir cache/pip \
Expand Down Expand Up @@ -257,7 +257,7 @@ runs:
# Note: this will fail the build if any installation fails (or
# possibly if it outputs messages to stderr)
conda install --update-deps -q -y $CONDA_DEPENDENCIES
if [ ${{ inputs.slim }} != '' ]; then
if [[ ${{ inputs.slim }} != '' ]]; then
PYVER=$(echo "py${{inputs.python}}" | sed 's/\.//g')
echo "Installing for $PYVER"
for PKG in 'cplex>=12.10' docplex 'gurobi=10.0.3' xpress cyipopt pymumps scip; do
Expand Down

0 comments on commit 7887266

Please sign in to comment.