aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/blank.md4
-rw-r--r--.github/ISSUE_TEMPLATE/setuptools-warns-about-python-2-incompatibility.md59
-rw-r--r--.github/workflows/python-tests.yml47
3 files changed, 41 insertions, 69 deletions
diff --git a/.github/ISSUE_TEMPLATE/blank.md b/.github/ISSUE_TEMPLATE/blank.md
deleted file mode 100644
index e41fc749..00000000
--- a/.github/ISSUE_TEMPLATE/blank.md
+++ /dev/null
@@ -1,4 +0,0 @@
----
-name: Bug Report or Feature Request
-about: Report a bug or request a feature
----
diff --git a/.github/ISSUE_TEMPLATE/setuptools-warns-about-python-2-incompatibility.md b/.github/ISSUE_TEMPLATE/setuptools-warns-about-python-2-incompatibility.md
deleted file mode 100644
index 1a4f58f2..00000000
--- a/.github/ISSUE_TEMPLATE/setuptools-warns-about-python-2-incompatibility.md
+++ /dev/null
@@ -1,59 +0,0 @@
----
-name: Setuptools warns about Python 2 incompatibility
-about: Report the issue where setuptools 45 or later stops working on Python 2
-title: Incompatible install in (summarize your environment)
-labels: Python 2
-assignees: ''
-
----
-
-<!--
-
-Please DO NOT SUBMIT this template without first investigating the issue and answering the questions below. This template is intended mainly for developers of systems and not for end users. If you are an end user experiencing the warning, please work with your system maintainers (starting with the project you're trying to use) to report the issue.
-
-If you did not intend to use this template, but only meant to file a blank issue, just hit the back button and click "Open a blank issue".
-
-Setuptools 45 dropped support for Python 2 with a strenuous warning and Setuptools 47 fails to run on Python 2.
-
-In most cases, using pip 9 or later to install Setuptools from PyPI or any index supporting the Requires-Python metadata will do the right thing and install Setuptools 44.x on Python 2.
-
-If you've come to file an issue, it's probably because some process managed to bypass these protections.
-
-Your first course of action should be to reason about how you managed to get an unsupported version of Setuptools on Python 2. Please complete the sections below and provide any other detail about your environment that will help us help you.
-
--->
-
-## Prerequisites
-
-<!-- These are the recommended workarounds for the issue. Please
-try them first. -->
-
-- [ ] Read [Python 2 Sunset docs](https://setuptools.readthedocs.io/en/latest/python%202%20sunset.html).
-- [ ] Python 2 is required for this application.
-- [ ] I maintain the software that installs Setuptools (if not, please contact that project).
-- [ ] Setuptools installed with pip 9 or later.
-- [ ] Pinning Setuptools to `setuptools<45` in the environment was unsuccessful.
-
-## Environment Details
-
-- Operating System and version:
-- Python version:
-- Python installed how:
-- Virtualenv version (if using virtualenv): n/a
-
-Command(s) that triggered the warning/error (and output):
-
-```
-```
-
-Command(s) used to install setuptools (and output):
-
-```
-```
-
-Output of `pip --version` when installing setuptools:
-
-```
-```
-
-## Other notes
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml
index 5a598084..93ec79d4 100644
--- a/.github/workflows/python-tests.yml
+++ b/.github/workflows/python-tests.yml
@@ -25,23 +25,54 @@ jobs:
- 3.6
- 3.5
os:
- - ubuntu-latest
+ - ubuntu-18.04
- ubuntu-16.04
- macOS-latest
# - windows-2019
# - windows-2016
+ include:
+ # Pre-release versions (GH-shipped)
+ - os: ubuntu-20.04
+ python-version: 3.9.0-beta.4 - 3.9.0
+ # Pre-release versions (deadsnakes)
+ - os: ubuntu-20.04
+ python-version: 3.9-beta
+ # Dev versions (deadsnakes)
+ - os: ubuntu-20.04
+ python-version: 3.9-dev
+ - os: ubuntu-20.04
+ python-version: 3.8-dev
env:
NETWORK_REQUIRED: 1
+ PYTHON_VERSION: ${{ matrix.python-version }}
TOX_PARALLEL_NO_SPINNER: 1
TOXENV: python
+ USE_DEADSNAKES: false
steps:
- uses: actions/checkout@master
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v1.1.1
+ - name: Set flag to use deadsnakes
+ if: >-
+ endsWith(env.PYTHON_VERSION, '-beta') ||
+ endsWith(env.PYTHON_VERSION, '-dev')
+ run: |
+ from __future__ import print_function
+ python_version = '${{ env.PYTHON_VERSION }}'.replace('-beta', '')
+ print('::set-env name=PYTHON_VERSION::{ver}'.format(ver=python_version))
+ print('::set-env name=USE_DEADSNAKES::true')
+ shell: python
+ - name: Set up Python ${{ env.PYTHON_VERSION }} (deadsnakes)
+ uses: deadsnakes/action@v1.0.0
+ if: fromJSON(env.USE_DEADSNAKES) && true || false
+ with:
+ python-version: ${{ env.PYTHON_VERSION }}
+ - name: Set up Python ${{ env.PYTHON_VERSION }}
+ uses: actions/setup-python@v2.1.1
+ if: >-
+ !fromJSON(env.USE_DEADSNAKES) && true || false
with:
- python-version: ${{ matrix.python-version }}
+ python-version: ${{ env.PYTHON_VERSION }}
- name: Log Python version
run: >-
python --version
@@ -73,9 +104,9 @@ jobs:
run: >-
python -m pip freeze --all
- name: Adjust TOXENV for PyPy
- if: startsWith(matrix.python-version, 'pypy')
+ if: startsWith(env.PYTHON_VERSION, 'pypy')
run: >-
- echo "::set-env name=TOXENV::${{ matrix.python-version }}"
+ echo "::set-env name=TOXENV::${{ env.PYTHON_VERSION }}"
- name: Log env vars
run: >-
env
@@ -91,6 +122,7 @@ jobs:
python -m
tox
--parallel auto
+ --parallel-live
--notest
--skip-missing-interpreters false
- name: Test with tox
@@ -98,3 +130,6 @@ jobs:
python -m
tox
--parallel auto
+ --parallel-live
+ --
+ -vvvvv