Skip to content

Update workflows and readme #50

Update workflows and readme

Update workflows and readme #50

Workflow file for this run

name: build matrix demo
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- django-version: "1.11.0"
python-version: "2.7"
- django-version: "1.11.0"
python-version: "3.5"
- django-version: "1.11.0"
python-version: "3.6"
- django-version: "1.11.0"
python-version: "3.7"
# Django 2.0
- django-version: "2.0.0"
python-version: "3.5"
- django-version: "2.0.0"
python-version: "3.6"
- django-version: "2.0.0"
python-version: "3.7"
# Django 2.1
- django-version: "2.1.0"
python-version: "3.5"
- django-version: "2.1.0"
python-version: "3.6"
- django-version: "2.1.0"
python-version: "3.7"
# Django 2.2
- django-version: "2.2.0"
python-version: "3.5"
- django-version: "2.2.0"
python-version: "3.6"
- django-version: "2.2.0"
python-version: "3.7"
- django-version: "2.2.0"
python-version: "3.8"
- django-version: "2.2.0"
python-version: "3.9"
# Django 3.0
- django-version: "3.0.0"
python-version: "3.6"
- django-version: "3.0.0"
python-version: "3.7"
- django-version: "3.0.0"
python-version: "3.8"
- django-version: "3.0.0"
python-version: "3.9"
# Django 3.1
- django-version: "3.1.0"
python-version: "3.6"
- django-version: "3.1.0"
python-version: "3.7"
- django-version: "3.1.0"
python-version: "3.8"
- django-version: "3.1.0"
python-version: "3.9"
# Django 3.2
- django-version: "3.2.0"
python-version: "3.6"
- django-version: "3.2.0"
python-version: "3.7"
- django-version: "3.2.0"
python-version: "3.8"
- django-version: "3.2.0"
python-version: "3.9"
- django-version: "3.2.0"
python-version: "3.10"
# Django 4.0
- django-version: "4.0.0"
python-version: "3.8"
- django-version: "4.0.0"
python-version: "3.9"
- django-version: "4.0.0"
python-version: "3.10"
# Django 4.2
- django-version: "4.2.0"
python-version: "3.8"
- django-version: "4.2.0"
python-version: "3.9"
- django-version: "4.2.0"
python-version: "3.10"
- django-version: "4.2.0"
python-version: "3.11"
- django-version: "4.2.0"
python-version: "3.12"
# Django 5.0
- django-version: "5.0.0"
python-version: "3.9"
- django-version: "5.0.0"
python-version: "3.10"
- django-version: "5.0.0"
python-version: "3.11"
- django-version: "5.0.0"
python-version: "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip version
run: |
python -m pip install -U pip
- name: Upgrade django version
run: |
python -m pip install "Django~=${{ matrix.django-version }}"
- name: Python and Django versions
run: |
echo "Python ${{ matrix.python-version }} -> Django ${{ matrix.django-version }}"
python --version
echo "Django: `django-admin --version`"