Skip to content

Commit

Permalink
ci(python): read python version from pyproject.toml (#13529)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Dec 31, 2023
1 parent b973af9 commit da859fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/.lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/.static-type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit da859fd

Please sign in to comment.