Updates comments about GitHub cache action

This commit is contained in:
Sajith Sasidharan 2021-01-18 17:55:07 -05:00
parent 9e4ea0c491
commit ed92202762

View File

@ -42,16 +42,17 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
# We need "pip cache dir", which became a thing in pip v20.1+.
# At the time of writing this, GitHub Actions offers pip v20.3.3
# for both ubuntu-latest and windows-latest, and pip v20.3.1 for
# macos-latest. Those are sufficiently recent pip versions that
# have "cache dir" sub-command.
# To use pip caching with GitHub Actions in an OS-independent
# manner, we need `pip cache dir` command, which became
# available since pip v20.1+. At the time of writing this,
# GitHub Actions offers pip v20.3.3 for both ubuntu-latest and
# windows-latest, and pip v20.3.1 for macos-latest.
- name: Get pip cache directory
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
# See https://github.com/actions/cache
- name: Use pip cache
uses: actions/cache@v2
with: