From 4e6cd44f3a9f6155ce92be391de67645ecfe96b9 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2024 04:07:38 +0100 Subject: [PATCH] CircleCI: Remove deprecated workflows version key (#5256) --- .circleci/config.yml | 17 ++++++++--------- packages/netcdf4/test_netcdf4.py | 2 +- packages/xgboost/test_xgboost.py | 4 ++-- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 407a27ae638..edba69debb8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,14 +8,14 @@ defaults: &defaults # (e.g. `rg -F --hidden `) - image: pyodide/pyodide-env:20241106-chrome130-firefox132 environment: - - EMSDK_NUM_CORES: 3 - EMCC_CORES: 3 - PYODIDE_JOBS: 3 - # Make sure the ccache dir is consistent between core and package builds - # (it's not the case otherwise) - CCACHE_DIR: /root/.ccache/ - # Disable the compression of wheels, so they are better compressed by the CDN - PYODIDE_ZIP_COMPRESSION_LEVEL: 0 + EMSDK_NUM_CORES: 3 + EMCC_CORES: 3 + PYODIDE_JOBS: 3 + # Make sure the ccache dir is consistent between core and package builds + # (it's not the case otherwise) + CCACHE_DIR: /root/.ccache/ + # Disable the compression of wheels, so they are better compressed by the CDN + PYODIDE_ZIP_COMPRESSION_LEVEL: 0 jobs: build-core: @@ -574,7 +574,6 @@ jobs: --access-key-env "AWS_ACCESS_KEY_ID_CACHE" --secret-key-env "AWS_SECRET_ACCESS_KEY_CACHE" workflows: - version: 2 build-and-deploy: jobs: - build-core: diff --git a/packages/netcdf4/test_netcdf4.py b/packages/netcdf4/test_netcdf4.py index 3f5dd193047..4115aa6d874 100644 --- a/packages/netcdf4/test_netcdf4.py +++ b/packages/netcdf4/test_netcdf4.py @@ -416,7 +416,7 @@ def walktree(top): data = np.empty(len(y) * len(x), object) for n in range(len(y) * len(x)): data[n] = np.arange(rng.integers(1, 10), dtype="int32") + 1 - data = np.reshape(data, (len(y), len(x))) + data = np.reshape(data, (len(y), len(x))) # type: ignore[assignment] vlvar[:] = data assert_print(vlvar) assert_print("vlen variable =\n", vlvar[:]) diff --git a/packages/xgboost/test_xgboost.py b/packages/xgboost/test_xgboost.py index 4e4b32a5a4e..a7cd869d36d 100644 --- a/packages/xgboost/test_xgboost.py +++ b/packages/xgboost/test_xgboost.py @@ -223,7 +223,7 @@ def test_pandas_categorical(selenium): X_0 = ["f", "o", "o"] X_1 = [4, 3, 2] X = pd.DataFrame({"feat_0": X_0, "feat_1": X_1}) - X["feat_0"] = X["feat_0"].astype("category") # type: ignore[call-overload] + X["feat_0"] = X["feat_0"].astype("category") # type: ignore[call-overload, index] transformed, _, feature_types = xgb.data._transform_pandas_df( X, enable_categorical=True ) @@ -232,7 +232,7 @@ def test_pandas_categorical(selenium): # test missing value X = pd.DataFrame({"f0": ["a", "b", np.nan]}) - X["f0"] = X["f0"].astype("category") # type: ignore[call-overload] + X["f0"] = X["f0"].astype("category") # type: ignore[call-overload, index] arr, _, _ = xgb.data._transform_pandas_df(X, enable_categorical=True) assert not np.any(arr == -1.0)