From 9d4db27ba6323125dbae62910aaf01f5a1de1ce5 Mon Sep 17 00:00:00 2001 From: Jay Varner Date: Thu, 11 Jan 2024 09:51:14 -0500 Subject: [PATCH] I do have to change dirs? --- .github/workflows/ci.yml | 5 +++++ manage.py | 30 ------------------------------ 2 files changed, 5 insertions(+), 30 deletions(-) delete mode 100644 manage.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2cd4d97..698a022 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,14 +24,19 @@ jobs: - name: Install Python dependencies run: | cd test_app + pwd pip install --upgrade pip pip install -r requirements.txt - name: Run migrations run: | + cd test_app + pwd python manage.py makemigrations readux_ingest_ecds python mange.py migrate - name: Run Tests run: | + cd test_app + pwd pytest tests/ diff --git a/manage.py b/manage.py deleted file mode 100644 index 9ca3bc7..0000000 --- a/manage.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python -import os -import sys - -if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") - - try: - from django.core.management import execute_from_command_line - except ImportError: - # The above import may fail for some other reason. Ensure that the - # issue is really that Django is missing to avoid masking other - # exceptions on Python 2. - try: - import django # noqa - except ImportError: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) - - raise - - # This allows easy placement of apps within the interior - # readux directory. - current_path = os.path.dirname(os.path.abspath(__file__)) - sys.path.append(os.path.join(current_path, "readux")) - - execute_from_command_line(sys.argv)