作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
3.0.0) 并且我的 github-actions 工作流不再运行。 -6ren">
Coveralls python 包装器 ( python-coveralls ) 最近收到了一个重大更新 (2.2.0 -> 3.0.0) 并且我的 github-actions 工作流不再运行。
这是我的工作流程的相关部分:
test:
runs-on: ubuntu-latest
steps:
{... non-relevant steps...}
- name: Run test suite
run: tox -e $(echo py${{ matrix.python-version }}-mg${{ matrix.PYMONGO }} | tr -d . | sed -e 's/pypypy/pypy/') -- -a "--cov=my_project"
- name: Send coverage to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls
这曾经适用于以前版本的python-coveralls,所以
tox
命令不是问题
Submitting coverage to coveralls.io...
Could not submit coverage: 422 Client Error: Unprocessable Entity for url: https://coveralls.io/api/v1/jobs
resubmitting with id None-158455276967659442
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/coveralls/api.py", line 252, in wear
response.raise_for_status()
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 422 Client Error: Unprocessable Entity for url: https://coveralls.io/api/v1/jobs
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/coveralls/cli.py", line 85, in main
result = coverallz.wear()
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/coveralls/api.py", line 255, in wear
raise CoverallsException('Could not submit coverage: {}'.format(e))
coveralls.exception.CoverallsException: Could not submit coverage: 422 Client Error: Unprocessable Entity for url: https://coveralls.io/api/v1/jobs
最佳答案
您可以尝试在发行说明中添加服务名称作为状态并在此处提及:
https://github.com/coveralls-clients/coveralls-python/issues/251
run: coveralls --service=github
关于python - 使用来自 github-actions 的 python-coveralls 返回 "Could not submit coverage: 422 Client Error",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65692711/
我是一名优秀的程序员,十分优秀!