Ere*_*evi 11 github tox python-3.7 github-actions
我在 GitHub 上有一个带有 tox.ini 文件的项目:
[tox]
envlist = py3
[testenv]
deps = -rrequirements.txt
commands =
pytest --doctest-modules
Run Code Online (Sandbox Code Playgroud)
效果很好。但是当我用“py37”替换“py3”时,它失败并出现错误:
ERROR: py37: InterpreterNotFound: python3.7
Run Code Online (Sandbox Code Playgroud)
据我所知,tox应该支持Python 3.7。这是 github 上的 tox 特有的问题吗?
Dee*_*ire 17
在 tox.ini 文件中,写入python3.7而不是py37,您将看到它有效。
所有功劳均归功于 Github 用户glinskyc的有关Github 问题的帖子。
还要确保您使用的是最新版本的tox,即3.23.1
| 归档时间: |
|
| 查看次数: |
13271 次 |
| 最近记录: |