Skip to content

Commit

Permalink
Test on Python 3.10 alpha 3
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Dec 16, 2020
1 parent 9380d23 commit 11fa9b5
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 48 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: Windows Tests
name: Windows

on:
push:
Expand All @@ -9,15 +9,21 @@ on:

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
name: "Python ${{ matrix.config.python-version }}"
runs-on: "windows-2019"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.6,3.7,3.8,3.9'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.3'

strategy:
fail-fast: False
matrix:
python-version: ["3.6","3.7","3.8","3.9"]
config:
- {python-version: "3.6", testenvs: "py36,build", experimental: False}
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
- {python-version: "3.10.0-alpha.3", testenvs: "py310-dev,build", experimental: True}

steps:
- name: Checkout 🛎️
Expand All @@ -26,14 +32,14 @@ jobs:
- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
python-version: "${{ matrix.config.python-version }}"

- name: Install dependencies 🔧
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox tox-gh-actions virtualenv
python -m pip install --upgrade tox virtualenv
- name: "Run Tests for Python ${{ matrix.python-version }}"
run: "python -m tox"
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: "python -m tox -e ${{ matrix.config.testenvs }}"
30 changes: 18 additions & 12 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: Linux Tests
name: Linux

on:
push:
Expand All @@ -9,15 +9,21 @@ on:

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-18.04"
name: "Python ${{ matrix.config.python-version }}"
runs-on: "ubuntu-20.04"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.6,3.7,3.8,3.9'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.3'

strategy:
fail-fast: False
matrix:
python-version: ["3.6","3.7","3.8","3.9"]
config:
- {python-version: "3.6", testenvs: "py36,build", experimental: False}
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
- {python-version: "3.10.0-alpha.3", testenvs: "py310-dev,build", experimental: True}

steps:
- name: Checkout 🛎️
Expand All @@ -26,30 +32,30 @@ jobs:
- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
python-version: "${{ matrix.config.python-version }}"

- name: Install dependencies 🔧
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox tox-gh-actions virtualenv
python -m pip install --upgrade tox virtualenv
python -m pip install --upgrade coverage_pyver_pragma
- name: "Run Tests for Python ${{ matrix.python-version }}"
run: "python -m tox"
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: "python -m tox -e ${{ matrix.config.testenvs }}"


- name: "Upload Coverage"
uses: actions/upload-artifact@v2
with:
name: "coverage-${{ matrix.python-version }}"
name: "coverage-${{ matrix.config.python-version }}"
path: .coverage


Coverage:
needs: tests
runs-on: "ubuntu-18.04"
runs-on: "ubuntu-20.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
Expand Down Expand Up @@ -93,7 +99,7 @@ jobs:
Deploy:
needs: tests

runs-on: "ubuntu-18.04"
runs-on: "ubuntu-20.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: macOS Tests
name: macOS

on:
push:
Expand All @@ -9,15 +9,21 @@ on:

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
name: "Python ${{ matrix.config.python-version }}"
runs-on: "macos-latest"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.6,3.7,3.8,3.9'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.3'

strategy:
fail-fast: False
matrix:
python-version: ["3.6","3.7","3.8","3.9"]
config:
- {python-version: "3.6", testenvs: "py36,build", experimental: False}
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
- {python-version: "3.10.0-alpha.3", testenvs: "py310-dev,build", experimental: True}

steps:
- name: Checkout 🛎️
Expand All @@ -26,14 +32,14 @@ jobs:
- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
python-version: "${{ matrix.config.python-version }}"

- name: Install dependencies 🔧
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox tox-gh-actions virtualenv
python -m pip install --upgrade tox virtualenv
- name: "Run Tests for Python ${{ matrix.python-version }}"
run: "python -m tox"
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
run: "python -m tox -e ${{ matrix.config.testenvs }}"
2 changes: 0 additions & 2 deletions doc-source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@
templates_path = ["_templates"]
html_static_path = ["_static"]
source_suffix = ".rst"
exclude_patterns = []

master_doc = "index"
suppress_warnings = ["image.nonlocal_uri"]
pygments_style = "default"
Expand Down
10 changes: 5 additions & 5 deletions doc-source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ domplotlib
* - Docs
- |docs| |docs_check|
* - Tests
- |travis| |actions_windows| |actions_macos| |coveralls| |codefactor| |pre_commit_ci|
- |actions_linux| |actions_windows| |actions_macos| |coveralls| |codefactor| |pre_commit_ci|
* - PyPI
- |pypi-version| |supported-versions| |supported-implementations| |wheel|
* - Activity
Expand All @@ -33,16 +33,16 @@ domplotlib
:workflow: Docs Check
:alt: Docs Check Status

.. |travis| actions-shield::
:workflow: Linux Tests
.. |actions_linux| actions-shield::
:workflow: Linux
:alt: Linux Test Status

.. |actions_windows| actions-shield::
:workflow: Windows Tests
:workflow: Windows
:alt: Windows Test Status

.. |actions_macos| actions-shield::
:workflow: macOS Tests
:workflow: macOS
:alt: macOS Test Status

.. |requires| requires-io-shield::
Expand Down
2 changes: 1 addition & 1 deletion doc-source/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sphinx-copybutton>=0.2.12
sphinx-notfound-page>=0.5
sphinx-prompt>=1.1.0
sphinx-tabs>=1.1.13
sphinx-toolbox>=1.7.5
sphinx-toolbox>=1.8.2
sphinxcontrib-httpdomain>=1.7.0
sphinxemoji>=0.1.6
toctree-plus>=0.0.4
4 changes: 4 additions & 0 deletions repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ python_versions:
- 3.7
- 3.8
- 3.9
- 3.10-dev

keywords:
- matplotlib
Expand All @@ -28,3 +29,6 @@ manifest_additional:
sphinx_html_theme: furo
tox_unmanaged:
- pytest

tox_requirements:
- "tox-pip-version>=0.0.7"
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ long_description_content_type = text/x-rst
platforms = Windows, macOS, Linux
url = https://github.com/domdfcoding/domplotlib
project_urls =
Documentation = https://domplotlib.readthedocs.io
Issue_Tracker = https://github.com/domdfcoding/domplotlib/issues
Source_Code = https://github.com/domdfcoding/domplotlib
Documentation = https://domplotlib.readthedocs.io/en/latest
Issue Tracker = https://github.com/domdfcoding/domplotlib/issues
Source Code = https://github.com/domdfcoding/domplotlib
classifiers =
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Expand Down
36 changes: 27 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,29 @@
# * check-wheel-contents

[tox]
envlist = py36, py37, py38, py39, mypy, build
envlist = py36, py37, py38, py39, py310-dev, mypy, build
skip_missing_interpreters = True
requires = pip>=20.2.1
requires =
pip>=20.3.3
tox-envlist>=0.1.0
tox-pip-version>=0.0.7
isolated_build = True

[envlists]
test = py36, py37, py38, py39
test = py36, py37, py38, py39, py310-dev
qa = mypy, lint
cov = py36, coverage

[gh-actions]
python =
3.6: py36, build, mypy
3.6: py36, build
3.7: py37, build
3.8: py38, build
3.9: py39, build
3.10.0-alpha.3: py310-dev, build

[testenv]
setenv =
PIP_USE_FEATURE = 2020-resolver
PYTHONDEVMODE = 1
setenv = PYTHONDEVMODE = 1
deps = -r{toxinidir}/tests/requirements.txt
commands =
python --version
Expand Down Expand Up @@ -122,8 +124,8 @@ commands =

[flake8]
max-line-length = 120
select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 W292 E265 E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504 E302 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT005 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py,.tox,venv
select = E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E225 E226 E227 E228 E231 E241 E242 E251 E261 E262 E265 E271 E272 E301 E302 E303 E304 E305 E306 E402 E502 E703 E711 E712 E713 E714 E721 W291 W292 W293 W391 W504 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT005 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
exclude = doc-source,.git,__pycache__,old,build,dist,__pkginfo__.py,setup.py,.tox,venv
rst-directives =
TODO
envvar
Expand Down Expand Up @@ -159,3 +161,19 @@ package = domplotlib
addopts = --color yes --durations 25 --mpl
timeout = 300
markers = mpl_image_compare
[testenv:py310-dev]
setenv = PYTHONDEVMODE = 1
pip_version = pip>=20.3.3
deps =
-r{toxinidir}/tests/requirements.txt
numpy @ https://github.com/domdfcoding/3.10-Wheels/raw/75854a403c7a359db927bdd0354102abe3160237/numpy-1.19.4-cp310-cp310-linux_x86_64.whl; platform_system == "Linux"
matplotlib @ https://github.com/domdfcoding/3.10-Wheels/raw/20e402dcfdafcf5873f6763f4256ade6fe4e75c6/matplotlib-3.3.3-cp310-cp310-linux_x86_64.whl; platform_system == "Linux"
numpy @ https://github.com/domdfcoding/3.10-Wheels/raw/20e402dcfdafcf5873f6763f4256ade6fe4e75c6/numpy-1.19.3-cp310-cp310-win_amd64.whl; platform_system == "Windows"
matplotlib @ https://github.com/domdfcoding/3.10-Wheels/raw/20e402dcfdafcf5873f6763f4256ade6fe4e75c6/matplotlib-3.3.3-cp310-cp310-win_amd64.whl; platform_system == "Windows"
coverage @ https://github.com/domdfcoding/3.10-Wheels/raw/e7b0d80ca499f56a6b37143c57aa557b3b49a353/coverage-5.3-cp310-cp310-win_amd64.whl; platform_system == "Windows"
git+https://github.com/domdfcoding/python-tabulate@issue-104
extras = all
commands =
python --version
python -m pytest --cov=chemistry_tools -r aR tests/ {posargs}

0 comments on commit 11fa9b5

Please sign in to comment.