From 8976483f3a11b9b9aec4d8b2ac2c36e23cc7a216 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Fri, 18 Aug 2023 10:26:38 -0400 Subject: [PATCH] Lint only on the min and max supported Python versions. (#9450) Only lint on the min and max supported Python versions. It's extremely unlikely that there's a lint issue on any version in between that doesn't show up on the min or max versions. GitHub rate-limits how many jobs can be running at any one time. Starting new jobs is also relatively slow, so linting on fewer versions makes CI faster. --- .github/workflows/_lint.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.yml index b98cacc4ef8..34069185d52 100644 --- a/.github/workflows/_lint.yml +++ b/.github/workflows/_lint.yml @@ -23,10 +23,15 @@ jobs: WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }} strategy: matrix: + # Only lint on the min and max supported Python versions. + # It's extremely unlikely that there's a lint issue on any version in between + # that doesn't show up on the min or max versions. + # + # GitHub rate-limits how many jobs can be running at any one time. + # Starting new jobs is also relatively slow, + # so linting on fewer versions makes CI faster. python-version: - "3.8" - - "3.9" - - "3.10" - "3.11" steps: - uses: actions/checkout@v3