From d1607c608ea7e80304ec72125ac0fae7ac0ab0fa Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Tue, 20 Sep 2022 07:47:00 -0700 Subject: [PATCH] Add expected pandas 1.5 warning --- .github/workflows/prerelease.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index e56e2bc36..e09ec5491 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -43,7 +43,7 @@ jobs: text = Path("./warnings.txt").read_text().strip() print("\n=== Sphinx Warnings ===\n\n" + text) # Print just for reference so we can look at the logs - unexpected = [ii for ii in text.split("\n") if all(i not in ii for i in ["kitchen-sink", "_static", "parse.py"])] + unexpected = [ii for ii in text.split("\n") if all(i not in ii for i in ["frame.py", "_static", "parse.py"])] print("\n=== Unexpected Warnings ===\n\n" + "\n".join(unexpected)) env_file = os.getenv('GITHUB_ENV') diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 19e946854..70b094727 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -60,7 +60,7 @@ jobs: from pathlib import Path text = Path("./warnings.txt").read_text().strip() print("\n=== Sphinx Warnings ===\n\n" + text) # Print just for reference so we can look at the logs - unexpected = [ii for ii in text.split("\n") if all(i not in ii for i in ["kitchen-sink", "_static", "parse.py"])] + unexpected = [ii for ii in text.split("\n") if all(i not in ii for i in ["frame.py", "_static", "parse.py"])] for ii in unexpected: print(f"Unexpected warning: \n{unexpected}\n\n") assert len(unexpected) == 0