Skip to content

Update main.yml

Update main.yml #19

Workflow file for this run

name: Main Workflow - Test and Deploy
on:
pull_request:
branches: [main]
push:
branches: [main]
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
jobs:
health-checkup-job: #Check the healthy by running tests
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python manage.py test
- name: Check Syntax
run: black . --check -l 120