Add Djagno versions to test matrix

32 and 4 used for constraints
This commit is contained in:
Martin Whitehouse 2022-08-05 14:27:29 +02:00
parent a51933f9bf
commit cd480b2750
No known key found for this signature in database
GPG Key ID: 8492A7A45769CD35

View File

@ -10,6 +10,7 @@ jobs:
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10"]
django-version: ["32","4"]
steps:
- uses: actions/checkout@v3
@ -21,12 +22,12 @@ jobs:
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-testing.txt')}}-${{ hashFiles('tox.ini') }}-${{ matrix.python-version }}
key: ${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-testing.txt')}}-${{ hashFiles('tox.ini') }}-${{ matrix.python-version }}-${{ matrix.django-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-testing.txt -c constraints-Django32.txt
pip install -r requirements.txt -r requirements-testing.txt -c constraints-Django${{ matrix.django-version }}.txt
- name: Format style check with 'autopep8'
run: |