Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/336.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Travis没有为多个python版本启动作业_Python_Travis Ci - Fatal编程技术网

Travis没有为多个python版本启动作业

Travis没有为多个python版本启动作业,python,travis-ci,Python,Travis Ci,我有一份travis的工作,看起来像这样: jobs: include: - stage: "Unit tests" language: python python: - "3.6" - "3.7" install: - pip install -r requirements.txt script: - python -m unittest test.client 我希望

我有一份travis的工作,看起来像这样:

jobs:
  include:
    - stage: "Unit tests"
      language: python
      python:
        - "3.6"
        - "3.7"
      install:
        - pip install -r requirements.txt
      script:
        - python -m unittest test.client
我希望这个单元测试运行两个作业,一个用于Python3.6,另一个用于3.7,但是它总是只在列出的第一个版本中运行。我是不是遗漏了什么?我跟着导游走


谢谢,python版本不是在作业中定义的,而是在根级别定义的

python:
  - "3.6"
  - "3.7"
jobs:
  ...

我发现这一点是因为travis最近引入了构建配置验证。可以在您的构建->查看配置下找到它->构建配置验证

它是公共回购吗?你能链接到travis版本吗?