diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 596fc5bef5..0688a4e1c0 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -31,6 +31,10 @@ jobs: env: MAIN_BRANCH: master MAJOR_VERSION: '2.10' + # When we upgrade this we should also upgrade the requirements + # in the documentation: doc/integrator/requirements.rst + # and the first pyupgrade pre-commit hook in .pre-commit-config.yaml + MIN_PYTHON_VERSION: '3.8' steps: - run: '! ls BACKPORT_TODO' @@ -183,11 +187,7 @@ jobs: # Use minimal version from the documentation - uses: actions/setup-python@v5 with: - # When we upgrade this we should also upgrade the requirements - # in the documentation: doc/integrator/requirements.rst - # and the first pyupgrade pre-commit hook in .pre-commit-config.yaml - python-version: '3.8' # Shouldn't be upgraded to latest Python version - - run: python --version|grep ' 3\.8\.' + python-version: '${{ env.MIN_PYTHON_VERSION }}' - run: pip install --requirement=ci/requirements-project.txt - run: docker compose version