name: CI/CD Pipeline on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python 3.11 uses: actions/setup-python@v5 with: python-version: "3.11" cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Django Syntax Check env: SECRET_KEY: 'test-key-for-ci' DEBUG: 'True' DATABASE_URL: 'sqlite:///:memory:' run: | python manage.py check