From f07207ad6d2abfa46102f63ec29dca77d1802a94 Mon Sep 17 00:00:00 2001 From: John Davis Date: Wed, 30 Nov 2022 21:10:04 -0500 Subject: [PATCH] Use 3 requirements files in the key for pip cache --- .github/workflows/lint.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 7bff665a705..0125f24c4d4 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -22,6 +22,10 @@ jobs: strategy: matrix: python-version: ['3.7', '3.10'] + env: + LINT_PATH: 'lib/galaxy/dependencies/pinned-lint-requirements.txt' + TYPE_PATH: 'lib/galaxy/dependencies/pinned-typecheck-requirements.txt' + CORE_PATH: 'lib/galaxy/dependencies/pinned-requirements.txt' steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -35,12 +39,8 @@ jobs: uses: actions/cache@v3 with: path: ~/.cache/pip - key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('lib/galaxy/dependencies/pinned-lint-requirements.txt') }} + key: pip-cache-${{ matrix.python-version }}-${{ hashFiles(env.LINT_PATH, env.TYPE_PATH, env.CORE_PATH) }} - name: Cache tox env - env: - LINT_PATH: 'lib/galaxy/dependencies/pinned-lint-requirements.txt' - TYPE_PATH: 'lib/galaxy/dependencies/pinned-typecheck-requirements.txt' - CORE_PATH: 'lib/galaxy/dependencies/pinned-requirements.txt' uses: actions/cache@v3 with: path: .tox