Skip to content

Commit

Permalink
check for before trying to rename
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPesce committed Nov 5, 2024
1 parent 905f82d commit dcb2539
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }})
Expand Down

0 comments on commit dcb2539

Please sign in to comment.