Add step to check version before trying to create venv

This commit is contained in:
Elijah 2024-01-12 10:18:14 +01:00
parent e78ceb6910
commit abd6209fe1
1 changed files with 6 additions and 5 deletions

View File

@ -15,14 +15,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Check if Python is installed
run: |
python3 -c "print('Python is installed')"
- name: Install python3-venv
id: install
run: |
apt-get update && apt-get install python3-virtualenv -y
apt-get update
apt-get install python3 python3-virtualenv python3-pip -y
- name: Check Python version
run: |
python3 --version
- name: Create virtual environment
run: |