mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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:
|
config:
|
||||||
- os: ubuntu
|
- os: ubuntu
|
||||||
python: 3.5
|
python: 3.5
|
||||||
tox: py35
|
|
||||||
- os: ubuntu
|
- os: ubuntu
|
||||||
python: 3.6
|
python: 3.6
|
||||||
tox: py36
|
|
||||||
- os: ubuntu
|
- os: ubuntu
|
||||||
python: 3.7
|
python: 3.7
|
||||||
tox: py37
|
- os: ubuntu
|
||||||
|
python: 3.8
|
||||||
- os: macos
|
- os: macos
|
||||||
python: 3.7
|
python: 3.7
|
||||||
tox: py37
|
|
||||||
- os: windows
|
- os: windows
|
||||||
python: 3.7
|
python: 3.7
|
||||||
tox: py37
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
@ -77,7 +74,7 @@ jobs:
|
||||||
echo "===== PANDOC ====="
|
echo "===== PANDOC ====="
|
||||||
pandoc --version | head -2
|
pandoc --version | head -2
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: tox -e ${{ matrix.config.tox }}
|
run: tox -e py${{ matrix.config.python }}
|
||||||
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
|
|
||||||
|
|
@ -11,15 +11,15 @@ env:
|
||||||
matrix:
|
matrix:
|
||||||
- TOX_ENV=docs
|
- TOX_ENV=docs
|
||||||
- TOX_ENV=flake8
|
- TOX_ENV=flake8
|
||||||
- TOX_ENV=py35
|
- TOX_ENV=py3.5
|
||||||
- TOX_ENV=py36
|
- TOX_ENV=py3.6
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- python: 3.7
|
- python: 3.7
|
||||||
sudo: true
|
sudo: true
|
||||||
dist: xenial
|
dist: xenial
|
||||||
env:
|
env:
|
||||||
- TOX_ENV=py37
|
- TOX_ENV=py3.7
|
||||||
addons:
|
addons:
|
||||||
apt_packages:
|
apt_packages:
|
||||||
- pandoc
|
- pandoc
|
||||||
|
|
|
||||||
9
tox.ini
9
tox.ini
|
|
@ -1,11 +1,12 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py{35,36,37},docs,flake8
|
envlist = py{3.5,3.6,3.7,3.8},docs,flake8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
basepython =
|
basepython =
|
||||||
py35: python3.5
|
py3.5: python3.5
|
||||||
py36: python3.6
|
py3.6: python3.6
|
||||||
py37: python3.7
|
py3.7: python3.7
|
||||||
|
py3.8: python3.8
|
||||||
passenv = *
|
passenv = *
|
||||||
usedevelop=True
|
usedevelop=True
|
||||||
deps =
|
deps =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue