From 5e826bd9417531f64e20326232eec9d9026bf18f Mon Sep 17 00:00:00 2001 From: Sivanantham Chinnaiyan Date: Tue, 6 Feb 2024 12:30:28 +0530 Subject: [PATCH] debug Signed-off-by: Sivanantham Chinnaiyan --- .github/workflows/python-test.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index f6de465c6db..ab6edfb263a 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -36,7 +36,12 @@ jobs: matrix: python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v2 + - name: Checkout source + uses: actions/checkout@v2 + + - name: Free-up disk space + uses: ./.github/actions/free-up-disk-space + - name: Set up Python ${{ matrix.python-version }} id: setup-python uses: actions/setup-python@v4 @@ -46,6 +51,13 @@ jobs: - name: Install Poetry and version plugin run: ./test/scripts/gh-actions/setup-poetry.sh + - name: Configure Poetry cache + run: | + sudo mkdir -p /mnt/poetry + # change permission so that poetry can install without sudo + sudo chown -R $USER /mnt/poetry + poetry config cache-dir /mnt/poetry + # load poetry cache if cache exists - name: Load poetry cache id: cached-poetry-dependencies @@ -232,7 +244,7 @@ jobs: path: /mnt/python/huggingfaceserver-venv key: huggingface-venv-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/kserve/poetry.lock', '**/huggingfaceserver/poetry.lock') }} # install huggingface server dependencies if cache does not exist - - name: Configure poetry + - name: Configure poetry for huggingface server if: ${{ !startsWith(steps.setup-python.outputs.python-version, '3.8') }} run: | poetry config virtualenvs.path /mnt/python/huggingfaceserver-venv @@ -255,3 +267,7 @@ jobs: run: | cd python/huggingfaceserver poetry run -- pytest --cov=huggingfaceserver + + - name: Free space after tests + run: | + df -hT