Cache Python Packages in the CI pipeline (#4488)

This commit is contained in:
merwanehamadi
2023-06-03 07:48:32 -07:00
committed by GitHub
parent 63b79a88c6
commit 79ba85a22e
2 changed files with 19 additions and 1 deletions

View File

@@ -32,6 +32,15 @@ jobs:
with:
python-version: ${{ env.min-python-version }}
- name: Set Date
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Cache Python packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ env.DATE }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
@@ -112,6 +121,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Set Date
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Cache Python packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ env.DATE }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip

View File

@@ -45,4 +45,4 @@
"max_level_beaten": 1
}
}
}
}