From ece18ea04c8c4c093127ec06d28dfc99f5b6a00a Mon Sep 17 00:00:00 2001 From: LucaMarconato <2664412+LucaMarconato@users.noreply.github.com> Date: Thu, 28 Mar 2024 01:11:59 +0100 Subject: [PATCH] Update build.yaml to use setup-python v4 (#509) * Update build.yaml * using setup python v4 with pip cache on test_and_deploy --- .github/workflows/build.yaml | 3 ++- .github/workflows/test.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 02429433..73bdc27c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,9 +12,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python 3.10 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "3.10" + cache: pip - name: Install build dependencies run: python -m pip install --upgrade pip wheel twine build - name: Build package diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e76c1c68..040e9ecb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -35,9 +35,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} + cache: pip - name: Get pip cache dir id: pip-cache-dir