Update grammar in docs #48
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Django CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main, release-* ] | |
jobs: | |
build: | |
services: | |
redis: | |
image: bitnami/redis:latest | |
ports: | |
- 6379:6379 | |
env: | |
REDIS_PASSWORD: "password" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.7" | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
django-version: | |
- "2.2" # LTS | |
- "3.0" | |
- "3.1" | |
- "3.2" # LTS | |
# - "4.0" | |
drf-version: | |
- "3.7" | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
exclude: | |
# Python 3.9 is compatible with django 3.0+ | |
- { python-version: "3.9", django-version: "2.2" } | |
# Python 3.10 is compatible with Django 3.2+ | |
- { python-version: "3.10", django-version: "2.2" } | |
- { python-version: "3.10", django-version: "3.0" } | |
- { python-version: "3.10", django-version: "3.1" } | |
# Django 4 is compatible with Python 3.8+ | |
# - { python-version: "3.7", django-version: "4.0" } | |
# DRF 3.10 problems with django 3.1+ | |
- { drf-version: "3.10", django-version: "3.1" } | |
- { drf-version: "3.10", django-version: "3.2" } | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade pip version | |
run: python -m pip install -U pip | |
- name: Install django version | |
run: python -m pip install "Django~=${{ matrix.django-version }}.0" | |
- name: Install drf version | |
run: python -m pip install "djangorestframework~=${{ matrix.drf-version }}.0" | |
- name: Install Dependencies | |
working-directory: ./testproj | |
run: python -m pip install -r requirements-github.txt | |
- name: Python and Django versions | |
run: | | |
echo "Python ${{ matrix.python-version }} -> Django ${{ matrix.django-version }} -> DRF ${{ matrix.drf-version }}" | |
python --version | |
echo "Django: `django-admin --version`" | |
echo "DRF: `python -c "import rest_framework; print(rest_framework.__version__)"`" | |
- name: Make logs directory | |
working-directory: ./testproj | |
run: mkdir logs | |
- name: Run Tests | |
working-directory: ./testproj | |
run: python manage.py test |