From 5d664355d3c9be4f1f7de68922e1b2cfbdce5628 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Thu, 4 Nov 2021 23:21:40 +0100 Subject: [PATCH] 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. --- .github/workflows/pylint-presubmit.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint-presubmit.yml b/.github/workflows/pylint-presubmit.yml index 3d76dd960ded2b..b469f047f4d423 100644 --- a/.github/workflows/pylint-presubmit.yml +++ b/.github/workflows/pylint-presubmit.yml @@ -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