-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CI: Use viash-actions/setup for installing viash * Remove bin folder * Fix bugs and update CI * Python 3.12 * Propagate is True by default * Undo logging statement change * Add CHANGELOG entries and fix logging * Add CHANGELOG entry * Enabling different pytest versions in CI * tox's --skip-env accepts regex matching * Remove dots from python versions in matrix * Does this substitution work? * Remove quotes * Fix regex * Pytester was only added in pytest 6.2 * Dot not install pytest twice * Try removing deprecationwarnings * Fix formatting * Fix tests for python 3.12 * Take extra warnings into account * Simplify memory specification * Fix formatting
- Loading branch information
1 parent
97d6aa7
commit ad2d20a
Showing
13 changed files
with
227 additions
and
105 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
viash_version: 0.8.2 |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
from _pytest.logging import get_log_level_for_setting | ||
import logging | ||
|
||
pytest_plugins = "pytester" | ||
|
||
|
||
def pytest_configure(config): | ||
# Some of the pytest functions used here are not officially exposed through | ||
# their API. We test for different pytest versions so should be OK. | ||
level = get_log_level_for_setting(config, "log_cli_level") | ||
if not level: | ||
level = logging.WARNING | ||
handler = logging.StreamHandler() | ||
handler.setLevel(level) | ||
# Set levels on the root logger. Logging events are passed up | ||
# the chain to the root logger, which will emit the events. | ||
# For this to happen, the non-root loggers need to have set 'propagate' | ||
# to 'True', which is the default. | ||
root_logger = logging.getLogger() | ||
root_logger.setLevel(level) | ||
root_logger.addHandler(handler) |
This file contains 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
This file contains 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
Oops, something went wrong.