Skip to content

Commit

Permalink
Update Python version in GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FeloxleF committed Mar 16, 2024
1 parent 0c6fca1 commit e50621a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.10, 3.8, 3.9]

steps:
- uses: actions/checkout@v3
Expand All @@ -26,13 +26,13 @@ jobs:
run:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set up MySQL Database
working-directory: ./activmindback
run: |
python -m pip install mysql-connector-python
python -c "import mysql.connector; conn = mysql.connector.connect(user='root', password='root', host='localhost', port='3306', database='activmind'); cursor = conn.cursor(); cursor.execute('CREATE DATABASE IF NOT EXISTS activmind')"
python manage.py makemigrations
python manage.py migrate
# - name: Set up MySQL Database
# working-directory: ./activmindback
# run: |
# python -m pip install mysql-connector-python
# python -c "import mysql.connector; conn = mysql.connector.connect(user='root', password='root', host='localhost', port='3306', database='activmind'); cursor = conn.cursor(); cursor.execute('CREATE DATABASE IF NOT EXISTS activmind')"
# python manage.py makemigrations
# python manage.py migrate
- name: Run Tests
working-directory: ./activmindback
run: python manage.py test

0 comments on commit e50621a

Please sign in to comment.