refactor #1

Open
roberto wants to merge 12 commits from feature/refactor-code into main
Showing only changes of commit 77af5617b9 - Show all commits

View File

@@ -23,6 +23,25 @@ jobs:
- name: Show Python - name: Show Python
run: python --version run: python --version
- name: Ensure Python 3.11 present (fallback)
run: |
set -e
echo "Checking python version..."
if command -v python >/dev/null 2>&1; then
python --version || true
fi
if python --version 2>&1 | grep -q "Python 3.11"; then
echo "Python 3.11 already installed"
else
echo "Attempting to install python3.11 via apt"
sudo apt-get update
sudo apt-get install -y python3.11 python3.11-venv python3.11-distutils python3-pip || true
if [ -x "/usr/bin/python3.11" ]; then
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 || true
fi
python --version || /usr/bin/python3.11 --version || true
fi
- name: Create venv and install - name: Create venv and install
run: | run: |
python -m venv venv python -m venv venv