From 996554541c0b72c65a6cd9080294b48d182fdd0f Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Dec 2021 12:35:08 +0100 Subject: [PATCH] use env for python version --- .github/workflows/pr_checks.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index 40fcaa4653..72bf62d3ec 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -11,10 +11,9 @@ on: branches-ignore: - l10* -# inputs: -# python_version: -# description: “Python version” -# default: 3.7 +env: + python_version: 3.7 + jobs: @@ -36,10 +35,10 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Python 3.7 + - name: Set up Python ${{ env.python_version }} uses: actions/setup-python@v2 with: - python-version: 3.7 + python-version: ${{ env.python_version }} - name: Install deps run: | pip install flake8==3.8.3