Skip to content

Commit

Permalink
Revert to previous state.
Browse files Browse the repository at this point in the history
  • Loading branch information
uthpalaherath committed Sep 30, 2024
1 parent 0d527d5 commit 14ebe81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
pip install flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run migrations
run: |
python manage.py makemigrations
python manage.py migrate # Ensure migrations are applied
# - name: Run migrations
# run: |
# python manage.py makemigrations
# python manage.py migrate # Ensure migrations are applied
- name: Test with pytest
run: |
mv env.example .env
Expand Down
3 changes: 1 addition & 2 deletions mainproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
# "NAME": os.path.join(BASE_DIR, "materials.db"),
"NAME": ":memory:", # In-memory database for tests
"NAME": os.path.join(BASE_DIR, "materials.db"),
}
}
else:
Expand Down

0 comments on commit 14ebe81

Please sign in to comment.