You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/01/18 16:46:28 UTC
[airflow] branch main updated: Setting up python uses default python version (#20926)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 99ad922 Setting up python uses default python version (#20926)
99ad922 is described below
commit 99ad9220945e43bef8b489ff6ec5a613980fc142
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Tue Jan 18 17:45:54 2022 +0100
Setting up python uses default python version (#20926)
There were a few places where default python version was not
used where Python's breeze environment was set up in CI.
This PR fixes it.
---
.github/workflows/build-images.yml | 4 ++--
.github/workflows/ci.yml | 34 +++++++++++++++++-----------------
2 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml
index 9dcdbae..97e1018 100644
--- a/.github/workflows/build-images.yml
+++ b/.github/workflows/build-images.yml
@@ -225,7 +225,7 @@ jobs:
mv "main-airflow/scripts/ci" "scripts"
- uses: actions/setup-python@v2
with:
- python-version: '3.7'
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -304,7 +304,7 @@ jobs:
mv "main-airflow/scripts/ci" "scripts"
- uses: actions/setup-python@v2
with:
- python-version: '3.7'
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 95731d5..9418851 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -248,7 +248,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-python@v2
with:
- python-version: '3.7'
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -331,7 +331,7 @@ jobs:
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{needs.build-info.outputs.defaultPythonVersion}}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -362,7 +362,7 @@ jobs:
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{needs.build-info.outputs.defaultPythonVersion}}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -398,7 +398,7 @@ jobs:
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{needs.build-info.outputs.defaultPythonVersion}}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
if: needs.build-info.outputs.waitForImage == 'true'
@@ -446,7 +446,7 @@ jobs:
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{needs.build-info.outputs.defaultPythonVersion}}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -513,7 +513,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{needs.build-info.outputs.defaultPythonVersion}}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
- name: >
Fetch incoming commit ${{ github.sha }} with its parent
uses: actions/checkout@v2
@@ -617,7 +617,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -669,7 +669,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -721,7 +721,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -784,7 +784,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -846,7 +846,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -907,7 +907,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -966,7 +966,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -1022,7 +1022,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- name: "Set issue id for main"
@@ -1130,7 +1130,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
if: needs.build-info.outputs.waitForImage == 'true'
@@ -1325,7 +1325,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
@@ -1423,7 +1423,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Setup python"
uses: actions/setup-python@v2
with:
- python-version: ${{ env.PYTHON_MAJOR_MINOR_VERSION }}
+ python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/