From a2549ca42412c1cd5f04d32183b256bdef3efd56 Mon Sep 17 00:00:00 2001 From: ckunki Date: Tue, 6 Feb 2024 13:32:29 +0100 Subject: [PATCH] cherry picked changes of .github/workflows/check_ci.yaml --- .github/workflows/check_ci.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_ci.yaml b/.github/workflows/check_ci.yaml index a3bd8422..5e1a76ba 100644 --- a/.github/workflows/check_ci.yaml +++ b/.github/workflows/check_ci.yaml @@ -30,7 +30,8 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }} AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }} - run_nodebook_tests: + run_notebook_tests: + if: "contains(github.event.head_commit.message, '[run-notebook-tests]')" environment: AWS_SAGEMAKER runs-on: ubuntu-latest @@ -38,6 +39,21 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Free disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: true + large-packages: false + + - name: Free disk space by removing large directories + run: | + sudo rm -rf /usr/local/graalvm/ + sudo rm -rf /usr/local/.ghcup/ + sudo rm -rf /usr/local/share/powershell + sudo rm -rf /usr/local/share/chromium + sudo rm -rf /usr/local/lib/node_modules + sudo rm -rf /opt/ghc + - name: Setup Python & Poetry Environment uses: ./.github/actions/prepare_poetry_env