Skip to content

Commit 68c90fc

Browse files
committed
Fix nightly workflow lint warnings
1 parent 1c7d24e commit 68c90fc

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.github/workflows/nightly-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
aggregate-python-reports:
110110
needs: run-nightly-tests
111111
if: ${{ always() }}
112-
runs-on: ubuntu-24.04
112+
runs-on: ubuntu-22.04
113113
steps:
114114
- name: 'preparation: Checkout MTL'
115115
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

tests/validation/tools/combine_reports.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,14 @@ def parse_report(path: Path) -> Dict[Tuple[str, str], str]:
9797
test_name = test_name_element.get_text(separator=" ", strip=True)
9898
else:
9999
title_element = test_details.select_one(".title")
100-
test_name = (
101-
title_element.get_text(separator=" ", strip=True)
102-
if title_element
103-
else "UNKNOWN"
104-
)
105-
106-
results[(file_path, test_name)] = STATUS_LABELS.get(
107-
status_token, STATUS_LABELS["unknown"]
108-
)
100+
test_name = title_element.get_text(separator=" ", strip=True) if title_element else "UNKNOWN"
101+
102+
results[(file_path, test_name)] = STATUS_LABELS.get(status_token, STATUS_LABELS["unknown"])
109103

110104
return results
111105

112106

113-
def build_dataframe(
114-
keys: Iterable[Tuple[str, str]], data: Dict[str, Dict[Tuple[str, str], str]]
115-
) -> pd.DataFrame:
107+
def build_dataframe(keys: Iterable[Tuple[str, str]], data: Dict[str, Dict[Tuple[str, str], str]]) -> pd.DataFrame:
116108
ordered_tests = sorted(set(keys), key=lambda item: (item[0], item[1]))
117109
rows = []
118110
nic_columns = list(data.keys())

0 commit comments

Comments
 (0)