Run the pipeline from already installed Python3 version
This commit is contained in:
parent
eae25e8f87
commit
d0ce43a4fa
|
@ -15,7 +15,32 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Check if Python is installed by default
|
||||
- name: Check if Python is installed
|
||||
run: |
|
||||
python3 -c "print('Hi')"
|
||||
python3 -c "print('Python is installed')"
|
||||
|
||||
- name: Create virtual environment
|
||||
run: |
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Run makemigrations
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
python manage.py makemigrations
|
||||
|
||||
- name: Run migrate
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
python manage.py migrate
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
python manage.py test
|
||||
|
||||
|
|
Loading…
Reference in a new issue