From 1b720cb6213d1679a976da9a5fd3079f39178c1e Mon Sep 17 00:00:00 2001 From: Arnold Date: Sat, 11 May 2024 02:57:49 +0200 Subject: [PATCH] Update deployment.yml --- .github/workflows/deployment.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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()