From 32a15b67ef68ce18fc82d61cabf6b0032fe20ef4 Mon Sep 17 00:00:00 2001 From: Nolwen Date: Fri, 20 Dec 2024 11:30:35 +0100 Subject: [PATCH] Limit matplotlib<3.10 in tests for pyRDDLGym pyRDDLGym.core.visualizer.chart.render() use a deprecated method which is even not exising anymore starting from matplotlib==3.10. And this is used by default when rendering the RDDLDomain wrapping pyRDDLGym environments. See issue https://github.com/pyrddlgym-project/pyRDDLGym/issues/270 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a956d1201c..47f8ac9a79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -564,7 +564,7 @@ jobs: python_version=${{ matrix.python-version }} wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*win*.whl) if [ "$python_version" = "3.12" ]; then - pip install ${wheelfile}[all] pytest "pygame>=2.5" optuna "cffi>=1.17" graph-jsp-env pytest-cases + pip install ${wheelfile}[all] pytest "pygame>=2.5" optuna "cffi>=1.17" graph-jsp-env pytest-cases "matplotlib<3.10" else pip install ${wheelfile}[all] pytest gymnasium[classic-control] optuna graph-jsp-env pytest-cases fi @@ -664,7 +664,7 @@ jobs: arch=$(uname -m) wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*macos*${arch}.whl) if [ "$python_version" = "3.12" ]; then - pip install ${wheelfile}[all] pytest "pygame>=2.5" optuna "cffi>=1.17" graph-jsp-env pytest-cases + pip install ${wheelfile}[all] pytest "pygame>=2.5" optuna "cffi>=1.17" graph-jsp-env pytest-cases "matplotlib<3.10" else pip install ${wheelfile}[all] pytest gymnasium[classic-control] optuna graph-jsp-env pytest-cases fi @@ -764,7 +764,7 @@ jobs: python_version=${{ matrix.python-version }} wheelfile=$(ls ./wheels/scikit_decide*-cp${python_version/\./}-*manylinux*.whl) if [ "$python_version" = "3.12" ]; then - pip install ${wheelfile}[all] pytest "pygame>=2.5" "cffi>=1.17" docopt commonmark optuna graph-jsp-env pytest-cases + pip install ${wheelfile}[all] pytest "pygame>=2.5" "cffi>=1.17" docopt commonmark optuna graph-jsp-env pytest-cases "matplotlib<3.10" else pip install ${wheelfile}[all] pytest gymnasium[classic-control] docopt commonmark optuna graph-jsp-env pytest-cases fi