From 47ecaea36a86394c1ff64d288152415c527eb914 Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Tue, 3 Sep 2019 22:06:35 +0100 Subject: [PATCH 01/13] Tox now tests and tracks coverage on Python 3.8. --- tox.ini | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 3a67881..b8aeac2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = coverage-erase,py27,py36,py37,coverage-report +envlist = coverage-erase,py27,py36,py37,py38,coverage-report [testenv] extras = tests @@ -31,6 +31,13 @@ commands = coverage run --source={envsitepackagesdir}/wires/,tests/ --branch -m unittest discover codecov +[testenv:py38-codecov] +passenv = CI TRAVIS TRAVIS_* +deps = codecov +commands = + coverage run --source={envsitepackagesdir}/wires/,tests/ --branch -m unittest discover + codecov + [testenv:coverage-report] basepython = python3.7 commands = From 88248bf645f13c4f93fcd73a1fc89f84da8386cc Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Tue, 3 Sep 2019 22:07:01 +0100 Subject: [PATCH 02/13] Travis CI to run tests on Python 3.8-dev. --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 030ad5a..b1bced9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,9 @@ matrix: - python: "3.7" dist: xenial env: TOXENV=py37-codecov + - python: "3.8-dev" + dist: xenial + env: TOXENV=py38-codecov install: From 4b503f7545e440d189b5f24675f231ee14f28b85 Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Tue, 3 Sep 2019 22:07:20 +0100 Subject: [PATCH 03/13] Doc update: support Python 3.8 on Linux. --- docs/source/support.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/support.rst b/docs/source/support.rst index 37f008b..8c2d770 100644 --- a/docs/source/support.rst +++ b/docs/source/support.rst @@ -18,6 +18,7 @@ There is, however, a limited set of interpreters and platforms where development * CPython 2.7 on 64 bit Linux, Windows or macOS systems. * CPython 3.6 on 64 bit Linux, Windows or macOS systems. * CPython 3.7 on 64 bit Linux, Windows or macOS systems. + * CPython 3.8 on 64 bit Linux. Other interpreters and platforms may become supported in the future. From e33cfe156ca5889fbeb08d78412cdb55b390319c Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Tue, 3 Sep 2019 22:37:01 +0100 Subject: [PATCH 04/13] Empty commit for force CI re-run. From 326147cbbf650f2be6d7e781f3aac75c5ac26df0 Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Wed, 20 Nov 2019 12:39:24 +0000 Subject: [PATCH 05/13] Travis CI to run tests on Python 3.8. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b1bced9..b5ac2cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ matrix: - python: "3.7" dist: xenial env: TOXENV=py37-codecov - - python: "3.8-dev" + - python: "3.8" dist: xenial env: TOXENV=py38-codecov From 8497adddfbc87380dd321464fb1bbbf59d64feb0 Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Wed, 20 Nov 2019 12:54:01 +0000 Subject: [PATCH 06/13] Azure Pipelines to run tests on Python 3.8. --- azure-pipelines-job-template.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines-job-template.yml b/azure-pipelines-job-template.yml index 9baed7f..459a97b 100644 --- a/azure-pipelines-job-template.yml +++ b/azure-pipelines-job-template.yml @@ -20,6 +20,8 @@ jobs: python.version: '3.6' Python37: python.version: '3.7' + Python38: + python.version: '3.8' maxParallel: 4 steps: From cfe62fa3e14f9b75e8e62c7d4de388965f5bd787 Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Wed, 20 Nov 2019 12:59:45 +0000 Subject: [PATCH 07/13] Azure Pipelines to run Linux platform tests. --- azure-pipelines.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a03bbb6..987bfd6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,6 +8,11 @@ trigger: jobs: +- template: azure-pipelines-job-template.yml + parameters: + name: Linux + vmImage: 'ubuntu-18.04' + - template: azure-pipelines-job-template.yml parameters: name: macOS From c2b57df4735a3187e41e556587cdc453cab52ddb Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Wed, 20 Nov 2019 13:07:34 +0000 Subject: [PATCH 08/13] No longer using Travis CI. --- .travis.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b5ac2cc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: python - - -matrix: - fast_finish: true - - include: - - python: "2.7" - env: TOXENV=py27-codecov - - python: "3.6" - env: TOXENV=py36-codecov - - python: "3.7" - dist: xenial - env: TOXENV=py37-codecov - - python: "3.8" - dist: xenial - env: TOXENV=py38-codecov - - -install: - - pip install tox - - -script: - - tox - - -notifications: - email: false From 980007c79b9098be82d506df5727f911a552e26a Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Wed, 20 Nov 2019 13:14:57 +0000 Subject: [PATCH 09/13] Doc update: support Python 3.8 on Windows and macOS, too. --- docs/source/support.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/support.rst b/docs/source/support.rst index 8c2d770..25f72e3 100644 --- a/docs/source/support.rst +++ b/docs/source/support.rst @@ -18,7 +18,7 @@ There is, however, a limited set of interpreters and platforms where development * CPython 2.7 on 64 bit Linux, Windows or macOS systems. * CPython 3.6 on 64 bit Linux, Windows or macOS systems. * CPython 3.7 on 64 bit Linux, Windows or macOS systems. - * CPython 3.8 on 64 bit Linux. + * CPython 3.8 on 64 bit Linux, Windows or macOS systems. Other interpreters and platforms may become supported in the future. From 0a39a0819d8d20ab5b2db5fd16d051927eaf7868 Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Wed, 20 Nov 2019 13:52:15 +0000 Subject: [PATCH 10/13] Empty commit for force CI re-run. From 7e1033e61e38697595fff6846739f94d8dbe15fb Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Wed, 20 Nov 2019 14:22:29 +0000 Subject: [PATCH 11/13] Azure Pipeline tests collect coverage and upload to codecov.io. --- azure-pipelines-job-template.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-job-template.yml b/azure-pipelines-job-template.yml index 459a97b..54614c1 100644 --- a/azure-pipelines-job-template.yml +++ b/azure-pipelines-job-template.yml @@ -30,9 +30,12 @@ jobs: versionSpec: '$(python.version)' architecture: 'x64' - - script: python -m pip install --upgrade pip && pip install . + - script: python -m pip install --upgrade pip && python -m pip install .[tests] displayName: 'Install' - - script: python -m unittest discover + - script: coverage run --branch -m unittest discover displayName: 'Run tests' + - script: python -m pip install codecov && codecov + displayName: 'Upload coverage results' + From b22a52bf53c2ea1f23d6862aa90c67659cb89852 Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Wed, 20 Nov 2019 14:27:38 +0000 Subject: [PATCH 12/13] Azure Pipeline tests now properly upload coverage to codecov.io. --- azure-pipelines-job-template.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-job-template.yml b/azure-pipelines-job-template.yml index 54614c1..0b57765 100644 --- a/azure-pipelines-job-template.yml +++ b/azure-pipelines-job-template.yml @@ -36,6 +36,8 @@ jobs: - script: coverage run --branch -m unittest discover displayName: 'Run tests' - - script: python -m pip install codecov && codecov + - script: python -m pip install codecov && codecov --no-color --required displayName: 'Upload coverage results' + env: + CODECOV_TOKEN: $(CODECOV_TOKEN) From b2d22fa6060bceec8adb8129217e046995a487f4 Mon Sep 17 00:00:00 2001 From: Tiago Montes Date: Wed, 20 Nov 2019 14:31:29 +0000 Subject: [PATCH 13/13] Empty commit for force CI re-run.