Update deployment.yml

This commit is contained in:
Arnold Dechamps 2024-05-11 02:57:49 +02:00 committed by GitHub
parent a49f459a5b
commit 1b720cb621
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,14 +17,26 @@ jobs:
with: with:
python-version: "3.11" python-version: "3.11"
# Other steps for linting with Flake8 - name: Install Flake8
run: pip install flake8
- name: Lint with Flake8
run: flake8 --ignore=E501,F401,E402,F811,E731,F403,E722 .
- name: Set up Python 3.11 for Django - name: Set up Python 3.11 for Django
uses: actions/setup-python@v3 uses: actions/setup-python@v3
with: with:
python-version: "3.11" 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 - name: Configure SSH for Deployment
if: success() if: success()