Add 3.9 to genbuilds.xsh

Also allow 3.9 to fail.

Signed-off-by: Carmen Bianca Bakker <carmen@carmenbianca.eu>
This commit is contained in:
Carmen Bianca Bakker 2020-10-25 17:07:53 +01:00
parent 1b9fd603ae
commit 2a8c4ed416
Failed to generate hash of commit
4 changed files with 7 additions and 1 deletions

View file

@ -13,7 +13,7 @@ OS_IMAGES = {
"macos": "macOS-latest",
"windows": "windows-latest",
}
PYTHON_VERSIONS = ["3.6", "3.7", "3.8"]
PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
CURR_DIR = os.path.dirname(__file__)
template_path = os.path.join(CURR_DIR, "pytest.tmpl")
@ -23,5 +23,8 @@ for os_name, python_version in product(OS_NAMES, PYTHON_VERSIONS):
s = template.replace("OS_NAME", os_name)
s = s.replace("OS_IMAGE", OS_IMAGES[os_name])
s = s.replace("PYTHON_VERSION", python_version)
# Allow Python 3.9 to fail.
if python_version in ["3.9"]:
s = "\n".join((s, " continue-on-error: true\n"))
fname = os.path.join(CURR_DIR, f"pytest-{os_name}-{python_version}.yml")
![echo @(s) > @(fname)]

View file

@ -40,3 +40,4 @@ jobs:
python -m pip install . --no-deps
python -m xonsh run-tests.xsh test -- --timeout=240
continue-on-error: true

View file

@ -40,3 +40,4 @@ jobs:
python -m pip install . --no-deps
python -m xonsh run-tests.xsh test -- --timeout=240
continue-on-error: true

View file

@ -40,3 +40,4 @@ jobs:
python -m pip install . --no-deps
python -m xonsh run-tests.xsh test -- --timeout=240
continue-on-error: true