Using Python 3.9

This commit is contained in:
José Manuel Barroso Galindo
2022-11-11 23:03:19 +01:00
committed by GitHub
parent ccfd4e4ca8
commit 3c54000701
2 changed files with 17 additions and 8 deletions

View File

@@ -681,11 +681,7 @@ copy_file_according_to_extension() {
}
is_mgl_file() {
if is_not_file_extension "${1}" "mgl" ; then
return 1
else
return 0
fi
is_file_extension "${1}" "mgl"
}
is_doc_file() {
@@ -722,14 +718,23 @@ is_not_zip_release() {
}
is_not_file_extension() {
local INPUT_FILE="${1}"
local EXPECTED_EXTENSION="${2}"
if is_file_extension "${INPUT_FILE}" "${EXPECTED_EXTENSION}" ; then
return 1
fi
>&2 echo "${PROCESS_URL_CTX}: ${INPUT_FILE} is NOT a ${EXPECTED_EXTENSION^^} file."
return 0
}
is_file_extension() {
local INPUT_FILE="${1}"
local EXPECTED_EXTENSION="${2}"
local ACTUAL_EXTENSION="${INPUT_FILE#*.}"
if [[ "${INPUT_FILE}" == "" ]] || [[ "${ACTUAL_EXTENSION,,}" != "${EXPECTED_EXTENSION,,}" ]] ; then
>&2 echo "${PROCESS_URL_CTX}: ${INPUT_FILE} is NOT a ${EXPECTED_EXTENSION^^} file."
return 0
return 1
fi
return 1
return 0
}
is_empty_release() {

View File

@@ -16,6 +16,10 @@ jobs:
- name: Install apt-get utilities
run: sudo apt-get install detox sharutils
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- uses: actions/checkout@v2
with:
ref: develop