Skip to content

Commit

Permalink
Try different shebang per actions/runner-images#7253 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Aug 31, 2023
1 parent a16d879 commit 4a8f093
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/conda_harness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -ex

# enable conda commands inside the script
Expand All @@ -12,15 +12,15 @@ function finish {
if [[ $(which python) == *"$PROJECT_NAME"* ]]; then
conda deactivate
fi

conda env remove -n $PROJECT_NAME -y
}
trap finish EXIT

# source the steps in the test
source $CCDS_ROOT/test_functions.sh

# navigate to the generated project and run make commands
# navigate to the generated project and run make commands
cd $1

# Fix for conda issue https://github.com/conda/conda/issues/7267 on MacOS
Expand Down
6 changes: 3 additions & 3 deletions tests/pipenv_harness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -ex

PROJECT_NAME=$(basename $1)
Expand All @@ -9,15 +9,15 @@ function finish {
if [[ $(which python) == *"$PROJECT_NAME"* ]]; then
exit
fi

pipenv --rm
}
trap finish EXIT

# source the steps in the test
source $CCDS_ROOT/test_functions.sh

# navigate to the generated project and run make commands
# navigate to the generated project and run make commands
cd $1
make create_environment

Expand Down
4 changes: 3 additions & 1 deletion tests/test_functions.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

function run_tests () {
python --version
python -c "print('python runs....')"
Expand All @@ -9,4 +11,4 @@ function run_tests () {
exit 99
fi

}
}
2 changes: 1 addition & 1 deletion tests/virtualenv_harness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

PROJECT_NAME=$(basename $1)
Expand Down

0 comments on commit 4a8f093

Please sign in to comment.