尝试将 CI 添加到 python 项目时出错

Error while trying to add CI to a python project

我正在尝试将 Travis Ci 测试添加到 python 项目,但每次我 运行 它时我都会收到一条错误消息:

Setting APT mirror in /etc/apt/sources.list: http://us-east- 
1.ec2.archive.ubuntu.com/ubuntu/
3.1 is not installed; attempting download
Downloading archive: https://s3.amazonaws.com/travis-python- 
archives/binaries/ubuntu/14.04/x86_64/python-3.1.tar.bz2
$ curl -sSf -o python-3.1.tar.bz2 ${archive_url}
curl: (22) The requested URL returned error: 403 Forbidden
Unable to download 3.1 archive. The archive may not exist. Please consider a 
different version.

这是 travis.yml 文件:

language: python
python:
 - "3.1"
install: pip install -r requirements.txt
script: 
- python tests.py

告诉你 Python 3.1 不是 Travis 支持的版本,请尝试更新的版本

language: python
python:
 - "3.6"