Modify tox envs to simplify CI and add Python 3.8

This commit is contained in:
Deniz Turgut 2020-04-26 15:01:56 +03:00
commit 125dec493e
No known key found for this signature in database
GPG key ID: 87B7168D7AB3ED2F
3 changed files with 11 additions and 13 deletions

View file

@ -17,19 +17,16 @@ jobs:
config:
- os: ubuntu
python: 3.5
tox: py35
- os: ubuntu
python: 3.6
tox: py36
- os: ubuntu
python: 3.7
tox: py37
- os: ubuntu
python: 3.8
- os: macos
python: 3.7
tox: py37
- os: windows
python: 3.7
tox: py37
steps:
- uses: actions/checkout@v2
@ -77,7 +74,7 @@ jobs:
echo "===== PANDOC ====="
pandoc --version | head -2
- name: Run tests
run: tox -e ${{ matrix.config.tox }}
run: tox -e py${{ matrix.config.python }}
lint:

View file

@ -11,15 +11,15 @@ env:
matrix:
- TOX_ENV=docs
- TOX_ENV=flake8
- TOX_ENV=py35
- TOX_ENV=py36
- TOX_ENV=py3.5
- TOX_ENV=py3.6
matrix:
include:
- python: 3.7
sudo: true
dist: xenial
env:
- TOX_ENV=py37
- TOX_ENV=py3.7
addons:
apt_packages:
- pandoc

View file

@ -1,11 +1,12 @@
[tox]
envlist = py{35,36,37},docs,flake8
envlist = py{3.5,3.6,3.7,3.8},docs,flake8
[testenv]
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py3.5: python3.5
py3.6: python3.6
py3.7: python3.7
py3.8: python3.8
passenv = *
usedevelop=True
deps =