Skip to content

Commit

Permalink
Merge pull request #36 from pawelzny/add_py3.8_to_CI
Browse files Browse the repository at this point in the history
add py3.8 to CI
  • Loading branch information
pawelzny authored Apr 13, 2019
2 parents 961b51f + eb1d075 commit 0f3c732
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 14 deletions.
54 changes: 41 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ read_cache: &read_cache
- v1-dependencies-{{ checksum "Pipfile.lock" }}
- v1-dependencies-

install_devdeps: &install_devdeps
name: install dependencies
command: |
pip install pipenv
pipenv install --three --ignore-pipfile
pipenv install --three --dev --ignore-pipfile
store_cache: &store_cache
paths:
- ./repo
Expand All @@ -34,7 +27,11 @@ jobs:
steps:
- checkout
- restore_cache: *read_cache
- run: *install_devdeps
- run:
name: install dependencies
command: |
pipenv install --python 3.5 --ignore-pipfile
pipenv install --python 3.5 --dev --ignore-pipfile
- save_cache: *store_cache
- run: *run_tests
py36:
Expand All @@ -44,7 +41,11 @@ jobs:
steps:
- checkout
- restore_cache: *read_cache
- run: *install_devdeps
- run:
name: install dependencies
command: |
pipenv install --python 3.6 --ignore-pipfile
pipenv install --python 3.6 --dev --ignore-pipfile
- save_cache: *store_cache
- run: *run_tests
py37:
Expand All @@ -54,9 +55,27 @@ jobs:
steps:
- checkout
- restore_cache: *read_cache
- run: *install_devdeps
- run:
name: install dependencies
command: |
pipenv install --python 3.7 --ignore-pipfile
pipenv install --python 3.7 --dev --ignore-pipfile
- save_cache: *store_cache
- run: *run_tests
py38:
<<: *defaults
docker:
- image: circleci/python:3.8.0a3
steps:
- checkout
- restore_cache: *read_cache
- run:
name: install dependencies
command: |
pipenv install --python 3.8 --ignore-pipfile
pipenv install --python 3.8 --dev --ignore-pipfile
- save_cache: *store_cache
- run: *run_tests

pypy35:
docker:
Expand Down Expand Up @@ -87,7 +106,11 @@ jobs:
steps:
- checkout
- restore_cache: *read_cache
- run: *install_devdeps
- run:
name: install dependencies
command: |
pipenv install --python 3.6 --ignore-pipfile
pipenv install --python 3.6 --dev --ignore-pipfile
- save_cache: *store_cache
- run:
name: run tests
Expand All @@ -100,7 +123,11 @@ jobs:
steps:
- checkout
- restore_cache: *read_cache
- run: *install_devdeps
- run:
name: install dependencies
command: |
pipenv install --python 3.6 --ignore-pipfile
pipenv install --python 3.6 --dev --ignore-pipfile
- save_cache: *store_cache
- run:
name: build docs
Expand All @@ -113,6 +140,7 @@ workflows:
- py35
- py36
- py37
- py38
- pypy35
- flake8
- docs
- docs
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def run(self):
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'License :: OSI Approved :: MIT License',
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py35,py36,py37,pypy35,flake8,docs
envlist = py35,py36,py37,py38,pypy35,flake8,docs

[testenv:flake8]
basepython = python3.6
Expand Down Expand Up @@ -31,6 +31,9 @@ basepython = python3.6
[testenv:py37]
basepython = python3.7

[testenv:py38]
basepython = python3.8

[testenv:pypy35]
basepython = pypy3
commands =
Expand Down

0 comments on commit 0f3c732

Please sign in to comment.