Files

31 lines
642 B
YAML
Raw Permalink Normal View History

2020-01-23 20:02:46 +05:30
name: Django CI
2020-01-23 19:47:58 +05:30
2020-02-12 13:26:01 -05:00
on:
push:
2020-07-13 12:12:41 -07:00
branches: [ $default-branch ]
2020-02-12 13:26:01 -05:00
pull_request:
2020-07-13 12:12:41 -07:00
branches: [ $default-branch ]
2020-01-23 19:47:58 +05:30
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
2021-01-02 16:24:13 -05:00
python-version: [3.7, 3.8, 3.9]
2020-01-23 19:47:58 +05:30
steps:
2020-02-04 14:05:26 +05:30
- uses: actions/checkout@v2
2020-01-23 19:47:58 +05:30
- name: Set up Python ${{ matrix.python-version }}
2020-07-31 10:21:41 -07:00
uses: actions/setup-python@v2
2020-01-23 19:47:58 +05:30
with:
python-version: ${{ matrix.python-version }}
2020-01-23 20:02:46 +05:30
- name: Install Dependencies
2020-01-23 19:47:58 +05:30
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python manage.py test