Thanks to visit codestin.com
Credit goes to github.com

Skip to content

README: cov-append when using matrix #515

@rvernica

Description

@rvernica

In the Merging multiple coverage reports case in the README we have:

- name: Install everything, run the tests, produce a .coverage.xxx file
run: make test # This is the part where you put your own test command
env:
COVERAGE_FILE: ".coverage.${{ matrix.python_version }}"
# Alternatively you can run coverage with the --parallel flag or add
# `parallel = True` in the coverage config file.
# If using pytest-cov, you can also add the `--cov-append` flag
# directly or through PYTEST_ADD_OPTS.

How would using --cov-append work in the end? Each matrix case runs in parallel and produces its own file. There will be no appending, just multiple files with the same name that will conflict at upload. Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions