From d2842b614d0a736e47bb950094d2d73ba03cb944 Mon Sep 17 00:00:00 2001 From: Alexander Nesterov Date: Sun, 17 Aug 2025 17:47:02 +0200 Subject: [PATCH] update workflows: enable pip caching in all stages with defined dependency paths --- .github/workflows/stage-build.yml | 4 ++++ .github/workflows/stage-device-tests.yml | 8 ++++++++ .github/workflows/stage-lint-test.yml | 4 ++++ .github/workflows/stage-validation.yml | 4 ++++ 4 files changed, 20 insertions(+) diff --git a/.github/workflows/stage-build.yml b/.github/workflows/stage-build.yml index 067fcec..5507d4b 100644 --- a/.github/workflows/stage-build.yml +++ b/.github/workflows/stage-build.yml @@ -17,6 +17,10 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' + cache-dependency-path: | + requirements.txt + setup.py - name: Install dependencies run: | diff --git a/.github/workflows/stage-device-tests.yml b/.github/workflows/stage-device-tests.yml index 7780f70..4ba2ee8 100644 --- a/.github/workflows/stage-device-tests.yml +++ b/.github/workflows/stage-device-tests.yml @@ -21,6 +21,10 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' + cache-dependency-path: | + requirements.txt + setup.py - name: Install dependencies run: | @@ -64,6 +68,10 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' + cache-dependency-path: | + requirements.txt + setup.py - name: Install dependencies run: | diff --git a/.github/workflows/stage-lint-test.yml b/.github/workflows/stage-lint-test.yml index 42808f6..a0b9eab 100644 --- a/.github/workflows/stage-lint-test.yml +++ b/.github/workflows/stage-lint-test.yml @@ -19,6 +19,10 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' + cache-dependency-path: | + requirements.txt + setup.py - name: Install dependencies run: | diff --git a/.github/workflows/stage-validation.yml b/.github/workflows/stage-validation.yml index 452b04f..fe33866 100644 --- a/.github/workflows/stage-validation.yml +++ b/.github/workflows/stage-validation.yml @@ -17,6 +17,10 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' + cache-dependency-path: | + requirements.txt + setup.py - name: Install dependencies run: |