From da859fd86d89fb47df05d9a192fb2ca67f120829 Mon Sep 17 00:00:00 2001 From: Hongbo Miao <3375461+hongbo-miao@users.noreply.github.com> Date: Sun, 31 Dec 2023 03:49:05 -0800 Subject: [PATCH] ci(python): read python version from pyproject.toml (#13529) --- .github/workflows/.lint.yml | 14 +++++++------- .github/workflows/.static-type-check.yml | 2 +- .github/workflows/test.yml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/.lint.yml b/.github/workflows/.lint.yml index 2f5f720996..7ea8f23b28 100644 --- a/.github/workflows/.lint.yml +++ b/.github/workflows/.lint.yml @@ -79,7 +79,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: pyproject.toml cache: poetry cache-dependency-path: poetry.lock - name: Set Poetry environment @@ -125,7 +125,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: pyproject.toml cache: poetry cache-dependency-path: poetry.lock - name: Set Poetry environment @@ -441,7 +441,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: pyproject.toml cache: poetry cache-dependency-path: poetry.lock - name: Set Poetry environment @@ -488,7 +488,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: pyproject.toml cache: poetry cache-dependency-path: poetry.lock - name: Set Poetry environment @@ -637,7 +637,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: pyproject.toml cache: poetry cache-dependency-path: poetry.lock - name: Set Poetry environment @@ -690,7 +690,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: pyproject.toml cache: poetry cache-dependency-path: poetry.lock - name: Set Poetry environment @@ -738,7 +738,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: pyproject.toml cache: poetry cache-dependency-path: poetry.lock - name: Set Poetry environment diff --git a/.github/workflows/.static-type-check.yml b/.github/workflows/.static-type-check.yml index 0d01169c9f..27c1b68439 100644 --- a/.github/workflows/.static-type-check.yml +++ b/.github/workflows/.static-type-check.yml @@ -89,7 +89,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: pyproject.toml cache: poetry cache-dependency-path: poetry.lock - name: Set Poetry environment diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2222348abb..95ecd64cfe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -508,7 +508,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: api-python/pyproject.toml cache: poetry cache-dependency-path: api-python/poetry.lock - name: Set Poetry environment @@ -544,7 +544,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version-file: neural-forecasting/forecast-air-passenger-number/pyproject.toml cache: poetry cache-dependency-path: neural-forecasting/forecast-air-passenger-number/poetry.lock - name: Set Poetry environment