Check if Python is installed by default
This commit is contained in:
parent
8929408fa5
commit
eae25e8f87
|
@ -15,37 +15,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Check if Python is installed by default
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: "3.10"
|
|
||||||
|
|
||||||
- name: Check Python Version
|
|
||||||
run: |
|
run: |
|
||||||
python3 --version
|
python3 -c "print('Hi')"
|
||||||
|
|
||||||
- name: Create virtual environment
|
|
||||||
run: |
|
|
||||||
python -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 New Issue