Python 3.6, 3.9 and Django 3.0 compatibility

This commit is contained in:
Swen Kooij
2020-01-06 15:46:40 +01:00
parent 53d7cd0c66
commit 49d88af76a
11 changed files with 120 additions and 46 deletions

View File

@@ -1,5 +1,32 @@
version: 2
jobs:
test-python36:
docker:
- image: python:3.6-alpine
- image: postgres:11.0
environment:
POSTGRES_DB: 'localizedfields'
POSTGRES_USER: 'localizedfields'
POSTGRES_PASSWORD: 'localizedfields'
steps:
- checkout
- run:
name: Install packages
command: apk add postgresql-libs gcc musl-dev postgresql-dev git
- run:
name: Install Python packages
command: pip install --progress-bar off .[test]
- run:
name: Run tests
command: tox -e 'py36-dj{20,21,22,30}'
environment:
DATABASE_URL: 'postgres://localizedfields:localizedfields@localhost:5432/localizedfields'
- store_test_results:
path: reports
test-python37:
docker:
- image: python:3.7-alpine
@@ -16,7 +43,7 @@ jobs:
- run:
name: Install Python packages
command: pip install -r requirements/test.txt
command: pip install --progress-bar off .[test]
- run:
name: Run tests
@@ -43,7 +70,7 @@ jobs:
- run:
name: Install Python packages
command: pip install -r requirements/test.txt
command: pip install --progress-bar off .[test]
- run:
name: Run tests
@@ -54,6 +81,33 @@ jobs:
- store_test_results:
path: reports
test-python39:
docker:
- image: python:3.9-rc-alpine3.10
- image: postgres:11.0
environment:
POSTGRES_DB: 'localizedfields'
POSTGRES_USER: 'localizedfields'
POSTGRES_PASSWORD: 'localizedfields'
steps:
- checkout
- run:
name: Install packages
command: apk add postgresql-libs gcc musl-dev postgresql-dev git
- run:
name: Install Python packages
command: pip install --progress-bar off .[test]
- run:
name: Run tests
command: tox -e 'py39-dj{21,22,30}'
environment:
DATABASE_URL: 'postgres://localizedfields:localizedfields@localhost:5432/localizedfields'
- store_test_results:
path: reports
analysis:
docker:
- image: python:3.7-alpine
@@ -65,7 +119,7 @@ jobs:
- run:
name: Install Python packages
command: pip install -r requirements/analysis.txt
command: pip install --progress-bar off .[analysis]
- run:
name: Verify formatting / linting
@@ -76,6 +130,8 @@ workflows:
version: 2
build:
jobs:
- test-python36
- test-python37
- test-python38
- test-python39
- analysis