From 20eb28c2f6ddbd7c91778e14534bd2c1624f93be Mon Sep 17 00:00:00 2001 From: Jeroen Van Goey Date: Tue, 27 Feb 2024 21:30:14 +0200 Subject: [PATCH] ci: cache pip dependencies --- .github/workflows/pytest-multiversion.yml | 3 ++- .github/workflows/python-publish.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest-multiversion.yml b/.github/workflows/pytest-multiversion.yml index 801dd0b..b7e8e3a 100644 --- a/.github/workflows/pytest-multiversion.yml +++ b/.github/workflows/pytest-multiversion.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Python package +name: Test on multiple Python versions on: push: @@ -23,6 +23,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: "pip" # caching pip dependencies - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 71e283b..6944bbe 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -26,6 +26,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.x" + cache: "pip" # caching pip dependencies - name: Install dependencies run: | python -m pip install --upgrade pip