forked from github/pelican
Modify tox envs to simplify CI and add Python 3.8
This commit is contained in:
parent
ffc960df5c
commit
125dec493e
3 changed files with 11 additions and 13 deletions
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
9
tox.ini
9
tox.ini
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue