From 305e8718b4de6e158f0a927160046c885887894d Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Wed, 2 Nov 2022 20:52:39 +0100 Subject: [PATCH] Show installed libraries and their versions in CI jobs (#20026) * Show versions * check * store outputs * revert Co-authored-by: ydshieh --- .circleci/config.yml | 10 ++++++++++ .circleci/create_circleci_config.py | 2 ++ 2 files changed, 12 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e055cf4fd8..bc0973d834 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -116,6 +116,11 @@ jobs: key: v0.5-code_quality-{{ checksum "setup.py" }} paths: - '~/.cache/pip' + - run: + name: Show installed libraries and their versions + command: pip freeze | tee installed.txt + - store_artifacts: + path: ~/transformers/installed.txt - run: black --check --preview examples tests src utils - run: isort --check-only examples tests src utils - run: python utils/custom_init_isort.py --check_only @@ -145,6 +150,11 @@ jobs: key: v0.5-repository_consistency-{{ checksum "setup.py" }} paths: - '~/.cache/pip' + - run: + name: Show installed libraries and their versions + command: pip freeze | tee installed.txt + - store_artifacts: + path: ~/transformers/installed.txt - run: python utils/check_copies.py - run: python utils/check_table.py - run: python utils/check_dummies.py diff --git a/.circleci/create_circleci_config.py b/.circleci/create_circleci_config.py index 9ef5ea1a63..b98d30c423 100644 --- a/.circleci/create_circleci_config.py +++ b/.circleci/create_circleci_config.py @@ -91,6 +91,8 @@ class CircleCIJob: } } ) + steps.append({"run": {"name": "Show installed libraries and their versions", "command": "pip freeze | tee installed.txt"}}) + steps.append({"store_artifacts": {"path": "~/transformers/installed.txt"}}) all_options = {**COMMON_PYTEST_OPTIONS, **self.pytest_options} pytest_flags = [f"--{key}={value}" if value is not None else f"-{key}" for key, value in all_options.items()]