From 0d653054d59ff06431342009e2e1f374ef7ffa29 Mon Sep 17 00:00:00 2001 From: harlee-x Date: Fri, 29 Mar 2024 14:22:08 +0800 Subject: [PATCH] CI: add cache by pip --- .github/workflows/ci-build.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 55230b9..294ae91 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -15,14 +15,11 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: "3.10" - # Optional - x64 or x86 architecture, defaults to x64 - architecture: 'x64' - - - name: Install dependencies - run: | + cache: 'pip' # caching pip dependencies + - run: | python -m pip install --upgrade pip pip install pytest pytest-cov if [ -f docker/python/requirements.txt ]; then pip install -r docker/python/requirements.txt; fi