mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-28 01:20:37 +03:00
* Replace calls to deprecated methods * Fix test config & Replace additional methods removed in django 4.0 * Update tox for official Django 4 release * 2.16.0 * Revert version update * Remove duplicate entry Co-authored-by: Jeremy Stretch <jstretch@ns1.com> * Limit max Django version Co-authored-by: Jeremy Stretch <jstretch@ns1.com> * Remove Python 3.5 (deprecated) from tox Co-authored-by: Jeremy Stretch <jstretch@ns1.com> Co-authored-by: Ülgen Sarıkavak <ulgens@users.noreply.github.com> Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 4
|
|
matrix:
|
|
django: ["2.2", "3.0", "3.1", "3.2", "4.0"]
|
|
python-version: ["3.8", "3.9"]
|
|
include:
|
|
- django: "2.2"
|
|
python-version: "3.6"
|
|
- django: "2.2"
|
|
python-version: "3.7"
|
|
- django: "3.0"
|
|
python-version: "3.6"
|
|
- django: "3.0"
|
|
python-version: "3.7"
|
|
- django: "3.1"
|
|
python-version: "3.6"
|
|
- django: "3.1"
|
|
python-version: "3.7"
|
|
- django: "3.2"
|
|
python-version: "3.6"
|
|
- django: "3.2"
|
|
python-version: "3.7"
|
|
- django: "3.2"
|
|
python-version: "3.10"
|
|
- django: "4.0"
|
|
python-version: "3.10"
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install tox tox-gh-actions
|
|
- name: Test with tox
|
|
run: tox
|
|
env:
|
|
DJANGO: ${{ matrix.django }}
|
|
TOXENV: ${{ matrix.toxenv }}
|