Conversation
Move the declaration of the backend to a `nox.options` declaration instead of passing an extra variable to each `@session`.
Instead of having a session that handles a large matrix of python versions, use a session that leverages the default python. This reduces the overhead of maintaining the `noxfile.py`. The replacement session has an optional posarg `partial-coverage` which will produce parallel-mode coverage files. This creates drop-in replacement behavior for the GitHub action which runs the tests on its own matrix of python versions and operating systems. `coverage_combine` moves to a CI only session.
This is having a negative impact to the CI. Will investigate later
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes lean harder into the workflow being centered around the
noxfile.pyand usingnoxfor all tasks.Tests no longer run on a matrix of pythons, removing the need to maintain that matrix in the
noxfile.py. Locally, tests will run on the python version where nox is installed. CLI options can still override this behavior. Passing-- partial-coveragetonox --session testwill produce a parallel-mode file with no report.nox --session coverage_combineis still used to process these though the expectation is that this is a CI action now.Add
testfor running pytest and generating a coverage report to consoleUpdate
testsessionRemoved
version_coverage