From 3b9683c312a992217bca1a1325d5086163ac23b1 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Thu, 4 Jul 2024 20:02:04 +0800 Subject: [PATCH] Clean disk space in conda test pipeline (#7902) Fixes #7901 ### Types of changes - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- .github/workflows/conda.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/conda.yml b/.github/workflows/conda.yml index 367a24cbde..8e2807111e 100644 --- a/.github/workflows/conda.yml +++ b/.github/workflows/conda.yml @@ -32,6 +32,10 @@ jobs: maximum-size: 16GB disk-root: "D:" - uses: actions/checkout@v4 + - name: Clean up disk space + run: | + find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \; + rm -rf /usr/share/dotnet/ - uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true