diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index f4fc188..e27cc1e 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -16,15 +16,27 @@ jobs: uses: actions/setup-python@v3 with: python-version: "3.11" + + - name: Install Flake8 + run: pip install flake8 - # Other steps for linting with Flake8 + - name: Lint with Flake8 + run: flake8 --ignore=E501,F401,E402,F811,E731,F403,E722 . - name: Set up Python 3.11 for Django uses: actions/setup-python@v3 with: python-version: "3.11" - # Other steps for running tests with Django + - name: Install Dependencies for Django + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + cp config.example.py config.py + + - name: Run Tests for Django + run: | + python manage.py test - name: Configure SSH for Deployment if: success()