Skip to content

error in build.yaml / wrong call to build coverage #20

@dornech

Description

@dornech

In build.yaml following steps are defined:
image
I think the hatch run test:pytest is wrong here.
a) It calls the test environment which is managed outside in the GitHub action (beside the fact, that for coverage I think there is no difference between different Python/OS version) so this is not helpful and causes overhead.
b) pytest just does not create the coverage report that the subsequent job / codecov action wants to retrieve.

I think the right call to be
hatch test -cover
which should be executed in the "hidden" hatch-test environment

However, I still have not yet resolved the coverage file not being found by the CodeCov action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions