Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch --parallel to --parallel-mode in tests session #1396

Open
gatoniel opened this issue Oct 22, 2024 · 0 comments · May be fixed by #1397
Open

Switch --parallel to --parallel-mode in tests session #1396

gatoniel opened this issue Oct 22, 2024 · 0 comments · May be fixed by #1397

Comments

@gatoniel
Copy link

Currently, my test actions raise a warning No files were found with the provided path: .coverage.*. No artifacts will be uploaded. and then the coverage action fails with Unable to find an artifact with the name: coverage-data.
I checked the coverage docs under https://coverage.readthedocs.io/en/5.5/cmd.html#cmd-combine and it seems that the correct command to create the .coverage.* files is --parallel-mode. Hence I think this line

session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs)

has to be changed to

        session.run("coverage", "run", "--parallel-mode", "-m", "pytest", *session.posargs)

The --parallel worked previously for me. But I could not find the change from --parallel to --parallel-mode in the track changes or documentation of coverage.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant