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