gpt4 book ai didi

python - 从 github 运行 Travis-CI

转载 作者:太空宇宙 更新时间:2023-11-03 14:41:08 25 4
gpt4 key购买 nike

我有一台 Windows 机器,所以我尝试让 Travis CI 直接从 github 运行我的 python 脚本。是否可以直接从我的 github 而不是从本地存储库运行 Travis CI python 脚本?

最佳答案

您可以集成TracisCI to your GItHub repo

这样,每次推送时,关联的 TravisCI 作业都会运行并执行您指定的内容。

关于您的 travis.yaml,它必须遵守 yaml syntax format :

language: python 
sudo: enabled
python:
-"3.5" <========= incorrect: must be - "3.5"

参见Building a Python Project :您将看到 -"x.y" 版本之间有一个空格。

关于unittest错误,请参阅“unittest installation error Could not find a version that satisfies the requirement

unittest is a standard module, which you don't need to install.

关于python - 从 github 运行 Travis-CI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46537100/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com