Update deployment.yml
This commit is contained in:
parent
a49f459a5b
commit
1b720cb621
16
.github/workflows/deployment.yml
vendored
16
.github/workflows/deployment.yml
vendored
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue