cdc-placement-website-backend/.github/workflows/django.yml

31 lines
632 B
YAML
Raw Normal View History

2023-10-11 03:51:24 +05:30
name: Django CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
2023-10-11 04:07:22 +05:30
python-version: [3.9]
2023-10-11 03:51:24 +05:30
steps:
- uses: actions/checkout@v3
- 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: |
2023-10-11 04:07:22 +05:30
cd CDC_Backend && python manage.py test