From 2316a949771a0322ab339831159300e718a38a2f Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Sat, 2 Mar 2024 08:09:38 -0500 Subject: [PATCH] WIP: Fix pip-pre errors [skip circle] --- mne/conftest.py | 2 ++ tools/github_actions_test.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mne/conftest.py b/mne/conftest.py index fd7d1946843..3bb9a8eb7ce 100644 --- a/mne/conftest.py +++ b/mne/conftest.py @@ -960,6 +960,8 @@ def pytest_sessionfinish(session, exitstatus): # get the number to print files = defaultdict(lambda: 0.0) for item in session.items: + if _phase_report_key not in item.stash: + continue report = item.stash[_phase_report_key] dur = sum(x.duration for x in report.values()) parts = Path(item.nodeid.split(":")[0]).parts diff --git a/tools/github_actions_test.sh b/tools/github_actions_test.sh index 78cc063d016..dd70782e98d 100755 --- a/tools/github_actions_test.sh +++ b/tools/github_actions_test.sh @@ -24,5 +24,5 @@ if [[ ! -z "$CONDA_ENV" ]] && [[ "${RUNNER_OS}" != "Windows" ]]; then echo "Executing from $(pwd)" fi set -x -pytest -m "${CONDITION}" --tb=short --cov=mne --cov-report xml --color=yes --junit-xml=$JUNIT_PATH -vv ${USE_DIRS} +pytest -x -m "${CONDITION}" --tb=short --cov=mne --cov-report xml --color=yes --junit-xml=$JUNIT_PATH -vv ${USE_DIRS} set +x