Skip to content

improve github actions workflow #1

improve github actions workflow

improve github actions workflow #1

Workflow file for this run

name: Deploy Production
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
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: Build and push Docker image
# run: |
# docker build -t your-production-image .
# docker push your-production-image
# - name: Deploy to Production
# run: |
# docker compose -f docker-compose.prod.yml up --build