diff --git a/.circleci/config.yml b/.circleci/config.yml index 302a28f..95c439c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,6 +27,30 @@ jobs: - store_test_results: path: reports + test-python38: + docker: + - image: python:3.8-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 -r requirements/test.txt + + - run: + name: Run tests + command: tox -e 'py38-dj{20,21,22}' + environment: + DATABASE_URL: 'postgres://localizedfields:localizedfields@localhost:5432/localizedfields' + analysis: docker: - image: python:3.7-alpine diff --git a/tox.ini b/tox.ini index 2d5450e..865a965 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py37-dj{20,21,22} +envlist = py37-dj{20,21,22}, py38-dj{20,21,22} [testenv] deps =