Skip to content

Commit

Permalink
Update Python to 3.8.15 (#16730)
Browse files Browse the repository at this point in the history
* Update Python

* Change minor version to 15

* Fix tests
  • Loading branch information
vojtechjelinek committed Dec 21, 2022
1 parent 8879e10 commit 9a334e9
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend_associated_test_file_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
- uses: ./.github/actions/merge
- name: Cache node modules and third_party/static
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/backend_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
- name: Cache node modules and third_party/static
uses: actions/cache@v3
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
- name: Cache node modules
uses: actions/cache@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
cache: 'pip'
cache-dependency-path: |
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
cache: 'pip'
cache-dependency-path: |
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
- name: Run E2E Test ${{ matrix.suite }}
if: ${{ steps.check-risk.outputs.is-low-risk != 0 }}
run: xvfb-run -a --server-args="-screen 0, 1285x1000x24" python -m scripts.run_e2e_tests --skip-install --skip-build --suite=${{ matrix.suite }} --prod_env
env:
env:
VIDEO_RECORDING_IS_ENABLED: 0
- name: Uploading webdriverio-video as Artifacts
if: ${{ failure() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eslint_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
- uses: ./.github/actions/merge
- name: Cache node modules and third_party/static
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
else
JOB_STRATEGY_MATRIX=$(node -e "let r=[]; for(let i = 1; i <= ${{ env.standard-test-runs }}; i++) { r.push(i) }; console.log(JSON.stringify(r));")
echo "::set-output name=job-strategy-matrix::$JOB_STRATEGY_MATRIX"
fi
fi
frontend-karma-tests:
needs: generate-job-strategy-matrix
runs-on: ${{ matrix.os }}
Expand All @@ -49,7 +49,7 @@ jobs:
echo $GITHUB_WORKSPACE
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
- uses: ./.github/actions/merge
- name: Cache node modules and third_party/static
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lighthouse_accessibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
- uses: ./.github/actions/merge
# Caching is disabled to avoid poisoning our cache with the
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lighthouse_performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
- uses: ./.github/actions/merge
- name: Cache node modules
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
cache: 'pip'
cache-dependency-path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pending-review-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
- uses: DubeySandeep/pending-review-notification@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_type_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
- name: Install python 2 for GAE
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typescript_and_e2e_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
python-version: '3.8.15'
architecture: 'x64'
- uses: ./.github/actions/merge
- name: Cache node modules and third_party/static
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ disable=abstract-method,
not-context-manager,
redefined-variable-type,
redundant-returns-doc,
# TODO(#12912): Python interpreter migration to 3.8.12 causing failing lint check. Fix it later.
# TODO(#12912): Python interpreter migration to 3.8.15 causing failing lint check. Fix it later.
redundant-u-string-prefix,
too-many-arguments,
too-many-boolean-expressions,
Expand Down
4 changes: 2 additions & 2 deletions scripts/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def create_directory(directory_path: str) -> None:
# if it does not match the expected prefix.
def test_python_version() -> None:
running_python_version = '{0[0]}.{0[1]}.{0[2]}'.format(sys.version_info)
if running_python_version != '3.8.12':
print('Please use Python 3.8.12. Exiting...')
if running_python_version != '3.8.15':
print('Please use Python 3.8.15. Exiting...')
# If OS is Windows, print helpful error message about adding Python to
# path.
if common.is_windows_os():
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def mock_get(unused_var: str) -> None:
version_info = collections.namedtuple(
'version_info', ['major', 'minor', 'micro'])
self.version_info_py38_swap = self.swap(
sys, 'version_info', version_info(major=3, minor=8, micro=12)
sys, 'version_info', version_info(major=3, minor=8, micro=15)
)
self.python2_print_swap = self.swap_with_checks(
builtins,
Expand Down

0 comments on commit 9a334e9

Please sign in to comment.