From dcb2539eba8baff6e438028f74b381d35a8a777f Mon Sep 17 00:00:00 2001 From: MichaelPesce Date: Tue, 5 Nov 2024 16:08:17 -0500 Subject: [PATCH] check for before trying to rename --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a300e96..ce4bb2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -139,7 +139,10 @@ jobs: - name: Rename conda package cache if: runner.os == 'Windows' shell: bash - run: mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache" + run: | + if [ -d "${CONDA_PKGS_DIR}" ]; then + mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache" + fi pytest: name: pytest (${{ matrix.os }})