Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All versions prior to 3.0.0 are untracked.

## [Unreleased]

### Changed

* The minimum Python version supported by this action is now 3.9

## [3.0.0]

### Added
Expand Down
4 changes: 2 additions & 2 deletions setup/setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ if [[ "${0}" == "${BASH_SOURCE[0]}" ]]; then
die "Internal error: setup harness was executed instead of being sourced?"
fi

# Check the Python version, making sure it's new enough (3.8+)
# Check the Python version, making sure it's new enough (3.9+)
# The installation step immediately below will technically catch this,
# but doing it explicitly gives us the opportunity to produce a better
# error message.
vers=$(python -V | cut -d ' ' -f2)
maj_vers=$(cut -d '.' -f1 <<< "${vers}")
min_vers=$(cut -d '.' -f2 <<< "${vers}")

[[ "${maj_vers}" == "3" && "${min_vers}" -ge 8 ]] || die "Bad Python version: ${vers}"
[[ "${maj_vers}" == "3" && "${min_vers}" -ge 9 ]] || die "Bad Python version: ${vers}"

# If the user didn't explicitly configure a Python version with
# `actions/setup-python`, then we might be using the distribution's Python and
Expand Down
Loading