Skip to content

Commit

Permalink
ci(pr-deployer): cache with specific python version (mdn#7779)
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 authored Dec 9, 2022
1 parent b394ed5 commit 45e1d63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr-deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install Python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "3.8"
Expand All @@ -23,13 +24,13 @@ jobs:
uses: actions/cache@v3
with:
path: deployer/.venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}-${{ steps.setup-python.outputs.python-version }}

- name: Load cached .local
uses: actions/cache@v3
with:
path: ~/.local
key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}
key: dotlocal-${{ runner.os }}-${{ hashFiles('.github/workflows/pr-deployer.yml') }}-${{ steps.setup-python.outputs.python-version }}

- name: Install Python poetry
uses: snok/install-poetry@v1
Expand Down

0 comments on commit 45e1d63

Please sign in to comment.