Merge pull request #250 from michael-k/gh-actions-python3.10-django4.0
Switch from Travis CI to GitHub Actions and run tests against Python 3.10 and Django 4.0master
commit
b0c25c303c
|
|
@ -0,0 +1,52 @@
|
|||
---
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version:
|
||||
- "3.6"
|
||||
- "3.7"
|
||||
- "3.8"
|
||||
- "3.9"
|
||||
django-version:
|
||||
- "2.2.17" # first version to support Python 3.9
|
||||
- "3.1.3" # first version to support Python 3.9
|
||||
- "3.2.0"
|
||||
include:
|
||||
- python-version: "3.8"
|
||||
django-version: "4.0.0"
|
||||
- python-version: "3.9"
|
||||
django-version: "4.0.0"
|
||||
- python-version: "3.10"
|
||||
django-version: "3.2.9" # first version to support Python 3.10
|
||||
- python-version: "3.10"
|
||||
django-version: "4.0.0"
|
||||
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip wheel setuptools
|
||||
python -m pip install --upgrade "django~=${{ matrix.django-version}}"
|
||||
- name: Run tests
|
||||
run: python manage.py test
|
||||
working-directory: sample_project
|
||||
24
.travis.yml
24
.travis.yml
|
|
@ -1,24 +0,0 @@
|
|||
arch:
|
||||
- amd64
|
||||
- ppc64le
|
||||
language: python
|
||||
python:
|
||||
- "3.6"
|
||||
- "3.7"
|
||||
- "3.8"
|
||||
- "3.9"
|
||||
env:
|
||||
- DJANGO_VERSION=2.2 SAMPLE_PROJECT=sample_project
|
||||
- DJANGO_VERSION=3.1 SAMPLE_PROJECT=sample_project
|
||||
- DJANGO_VERSION=3.2 SAMPLE_PROJECT=sample_project
|
||||
|
||||
branches:
|
||||
only:
|
||||
- develop
|
||||
|
||||
install:
|
||||
- pip install django==$DJANGO_VERSION
|
||||
|
||||
script:
|
||||
- cd $SAMPLE_PROJECT
|
||||
- python manage.py test
|
||||
|
|
@ -22,7 +22,7 @@ Sorting inlines:
|
|||

|
||||
|
||||
## Supported Django Versions
|
||||
For Django 3 use the latest version
|
||||
For Django 3 and 4 use the latest version
|
||||
|
||||
For Django 1.8.x < 3.0, use 2.1.8.
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ Sorting inlines:
|
|||
Supported Django Versions
|
||||
-------------------------
|
||||
|
||||
For Django 3 use the latest version
|
||||
For Django 3 and 4 use the latest version
|
||||
|
||||
For Django 1.8.x < 3.0, use 2.1.8.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue