codecov anym未处理覆盖率报告

2024-04-29 22:58:12 发布

您现在位置:Python中文网/ 问答频道 /正文

不久前,我用gitlab管道设置了codecov,并且能够在codecov中看到覆盖率报告。由于最初的设置报告停止处理后,几次提交,我一直无法找出我做错了什么让报告再次处理。你知道吗

gitlab管道中,我使用toxpip install codecov


test:
  stage: test
  script:
    - pip install circuitpython-build-tools Sphinx sphinx-rtd-theme tox codecov
    - tox
    - codecov -t $CODECOV_TOKEN
  artifacts:
    paths:
      - htmlcov/

tox中,我运行coverage

[testenv:coverage]
deps = -rrequirements.txt
       -rtest-requirements.txt
commands = coverage run -m unittest discover tests/
           coverage html

codecov中,我可以看到上载尝试处理的位置,但是没有太多描述就失败了:

There was an error processing coverage reports.

我已经参考了python教程,但看不出有什么错。你知道吗

https://github.com/codecov/codecov-python

https://github.com/codecov/example-python


Tags: installpiphttpstestgithubtxtcomcodecov