CI: Use Python 3.9 for PyLint presubmit action

- Use Python 3.9 instead of Python 3.8 for PyLint presubmit action.
 - Update the setup-python action to v2, which is actively maintained.
 - Parse the Python version as a string ("3.9" instead of 3.9), since otherwise  Python 3.10 will be rounded and processed as Python 3.1.
This commit is contained in:
Ewout ter Hoeven
2021-11-04 23:21:40 +01:00
committed by GitHub
parent 68e093af72
commit 5d664355d3

View File

@@ -34,10 +34,10 @@ jobs:
- name: Report list of changed files
run: |
echo Changed files: ${{ steps.get_file_changes.outputs.files }}
- name: Set up Python 3.8
uses: actions/setup-python@v1
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: "3.9"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip