Skip to content

Commit 4ecbd4d

Browse files
authored
Add optional CI run against python nightly (python#10213)
This commit adds an optional CI run with python nightly. It is allowed to allow run failures, so even if the nightly run fails the whole CI still succeeds. This can be useful for detecting breaking changes in newer python versions and tracking progress towards supporting them. This adds around 17 minutes to the total time calculated by travis. Due to the fast_finish attribute the success of the CI can be determined, even if the nightly run isn't finished yet, therefore no actual runtime is added.
1 parent 020998d commit 4ecbd4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ env:
2222
PYTHON_DEBUG_BUILD=0
2323

2424
jobs:
25+
fast_finish: true
2526
include:
2627
# Specifically request 3.5.1 because we need to be compatible with that.
2728
- name: "run test suite with python 3.5.1 (compiled with mypyc)"
@@ -43,6 +44,8 @@ jobs:
4344
python: 3.8
4445
- name: "run test suite with python 3.9"
4546
python: 3.9
47+
- name: "run test suite with python nightly"
48+
python: nightly
4649
- name: "run mypyc runtime tests with python 3.6 debug build"
4750
language: generic
4851
env:
@@ -80,6 +83,8 @@ jobs:
8083
# env:
8184
# - TOXENV=dev
8285
# - EXTRA_ARGS=
86+
allow_failures:
87+
- python: nightly
8388

8489
install:
8590
# pip 21.0 no longer works on Python 3.5

0 commit comments

Comments
 (0)