diff --git a/.github/workflows/build-member.yml b/.github/workflows/build-member.yml index 289a6f82..3ca39446 100644 --- a/.github/workflows/build-member.yml +++ b/.github/workflows/build-member.yml @@ -239,5 +239,5 @@ jobs: working-directory: ${{ github.workspace }}/conformance shell: bash run: | - python -m pip install pandas packaging + python -m pip install pandas==2.1.4 packaging python ./diff.py -s conformance_expected_output.csv github.csv diff --git a/.github/workflows/run-cts-pr.yml b/.github/workflows/run-cts-pr.yml index 4c649122..c2d01c9c 100644 --- a/.github/workflows/run-cts-pr.yml +++ b/.github/workflows/run-cts-pr.yml @@ -164,7 +164,7 @@ jobs: - name: Diff Conformance Test shell: bash run: | - python -m pip install pandas packaging + python -m pip install pandas==2.1.4 packaging python conformance/diff.py -s conformance/conformance_expected_output.csv github.csv - name: Upload conformance output artifact diff --git a/conformance/diff.py b/conformance/diff.py index c4e242c8..fada4633 100644 --- a/conformance/diff.py +++ b/conformance/diff.py @@ -8,6 +8,13 @@ print("This script requires the use of Pandas v1.1.0.") sys.exit(1) +# melt() with a MultiIndex is not working as of 2.2.0. Force use of an earlier +# version for now until the regression is corrected or we fix this script. +# See: https://github.com/pandas-dev/pandas/issues/57663 +if Version(pd.__version__) >= Version("2.2.0"): + print("This script does not support Pandas v2.2.0.") + sys.exit(1) + # Argument parser parser = argparse.ArgumentParser() parser.add_argument("csv1", type = str, help="First CSV")