Skip to content

Commit 085080e

Browse files
Merge pull request #33 from ccdc-opensource/SYS-8273-python-update
SYS-8273 update commits to ingest python or python3
2 parents b79871b + 231f36f commit 085080e

4 files changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/quality_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ jobs:
44
quality-check:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
8-
- uses: actions/setup-python@v4
7+
- uses: actions/checkout@v6
8+
- uses: actions/setup-python@v6
99
with:
1010
python-version: "3.11"
1111
- name: Install dependencies

main/commit-msg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ case "$OSTYPE" in
88
;;
99
*)
1010
echo "Running ${me} on linux / mac / unix"
11-
PYTHON_EXECUTABLE=python3
11+
if command -v python3 > /dev/null 2>&1; then
12+
PYTHON_EXECUTABLE=python3
13+
else
14+
PYTHON_EXECUTABLE=python
15+
fi
1216
esac
1317

1418
${PYTHON_EXECUTABLE} "${BASH_SOURCE[0]%.*}.py" "$@"

main/pre-commit

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ case "$OSTYPE" in
88
;;
99
*)
1010
echo "Running ${me} on linux / mac / unix"
11-
PYTHON_EXECUTABLE=python3
11+
if command -v python3 > /dev/null 2>&1; then
12+
PYTHON_EXECUTABLE=python3
13+
else
14+
PYTHON_EXECUTABLE=python
15+
fi
1216
esac
1317

1418
${PYTHON_EXECUTABLE} "${BASH_SOURCE[0]%.*}.py" "$@"

main/pre-merge-commit

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ case "$OSTYPE" in
88
;;
99
*)
1010
echo "Running ${me} linux / mac / unix"
11-
PYTHON_EXECUTABLE=python3
11+
if command -v python3 > /dev/null 2>&1; then
12+
PYTHON_EXECUTABLE=python3
13+
else
14+
PYTHON_EXECUTABLE=python
15+
fi
1216
esac
1317

1418
${PYTHON_EXECUTABLE} "${BASH_SOURCE[0]%.*}.py" "$@"

0 commit comments

Comments
 (0)