Skip to content

Commit 124c81a

Browse files
committed
fix: fixed the issue of python3.11 not installed
1 parent 49f4319 commit 124c81a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/actions/setup-python-env/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ runs:
3434
3535
cd $HOME/${{ inputs.app-directory }}
3636
37+
if ! command -v python3.11 &> /dev/null; then
38+
echo "Installing Python 3.11....."
39+
sudo add-apt-repository ppa:deadsnakes/ppa -y
40+
sudo apt-get update
41+
sudo apt-get install -y python3.11 python3.11-venv
42+
43+
echo "✓ Python 3.11 installed"
44+
45+
fi
46+
47+
3748
# Create or reuse existing environment
3849
if [ ! -d "venv" ]; then
3950
python3.11 -m venv venv

0 commit comments

Comments
 (0)