-
Notifications
You must be signed in to change notification settings - Fork 56
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
Seeking examples of pytest-testmon in GitHub Actions #226
Comments
Hello @xianyuanliu , I've been trying to cache the .testmondata like you mentioned in your issue. Would that be possible if you could help me with the code of doing so? |
I was unable to successfully resolve it yet due to differences between the cache systems of GitHub Action and the local machine. While I am glad to help, I might not be able to resolve the issue if it is the same issue. |
@xianyuanliu At first I misunderstood your suggested process.
Collecting testmon data only nightly would lead to unnecessary re-execution of all tests related to all changes of recent changes and branches. Are you up for using --testmon and --testmon-noselect? Or should we explore more your use case of --testmon-nocollect? |
@tarpas Is there a way to run all my tests and build the testmon DB faster by running tests in parallel workers (e.g using a GHA matrix)? Does |
Is your feature request related to a problem? Please describe.
I'm looking to use
pytest-testmon
to optimize test execution time in the GitHub Action. I use the GitHub Action Cache to manage.testmondata
storage and restoration. Here's my design approach:.testmondata
..testmondata
for a faster test, without updating it.However, an issue arises when I execute
pytest --testmon-nocollect
within the PR: a new.testmondata
is unexpectedly generated in the GitHub Action Cache. I'm unsure about the root cause of this. Could you possibly share any examples or repositories that have encountered and addressed a similar scenario?Describe the solution you'd like
When I run
pytest --testmon-nocollect
within the PR, no new.testmondata
is generated in the GitHub Action Cache. However, executingpytest --testmon
does result in the creation of a new.testmondata
in the cache.Describe alternatives you've considered
Not yet.
Additional context
Nope.
The text was updated successfully, but these errors were encountered: