build: set actions/setup-python to v2 (#11644)

This upgrades the `setup-python` action and pins it to the latest v2,
which suppresses the warnings about set-env and add-path:

    Error: The `set-env` command is deprecated and will be disabled on November 16th. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
This commit is contained in:
Jesse Yang
2020-11-11 13:15:05 -08:00
committed by GitHub
parent 4f21dea55f
commit 7cbf21c39f
5 changed files with 12 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2.1.1
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: OS dependencies