Skip to content

Commit

Permalink
Update django.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LokRaj-Vuppu authored May 23, 2024
1 parent 0976e01 commit 192efa3
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Django CI
name: Django CI/CD

on:
push:
branches: [ "master" ]
branches: [master]
pull_request:
branches: [ "master" ]
branches: [master]

jobs:
build:

build-and-test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9]

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 watchmate/requirements.txt
- name: Run Tests
run: |
python watchmate/manage.py test
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8' # Replace '3.x' with your desired Python version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r watchmate/requirements.txt # Adjust the path if necessary
- name: Run migrations
run: python watchmate/manage.py migrate # Adjust the path if necessary

- name: Run tests
run: python watchmate/manage.py test # Adjust the path if necessary

0 comments on commit 192efa3

Please sign in to comment.