From ac9a05fc25e1137564cfc7de86c190eac873ba51 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Tue, 23 May 2023 15:55:24 +0200 Subject: [PATCH 1/3] add warning --- dist/setup/index.js | 3 +++ src/setup-python.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dist/setup/index.js b/dist/setup/index.js index 0448f36db..7167da18b 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -6479,6 +6479,9 @@ function run() { core.info(`Successfully setup PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`); } else { + if (version.trim().startsWith('2')) { + core.warning('The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672'); + } const installed = yield finder.useCpythonVersion(version, arch); pythonVersion = installed.version; core.info(`Successfully setup ${installed.impl} (${pythonVersion})`); diff --git a/src/setup-python.ts b/src/setup-python.ts index 2f946578e..e589d8595 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -34,6 +34,9 @@ async function run() { `Successfully setup PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})` ); } else { + if (version.trim().startsWith('2')) { + core.warning('The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672') + } const installed = await finder.useCpythonVersion(version, arch); pythonVersion = installed.version; core.info(`Successfully setup ${installed.impl} (${pythonVersion})`); From a73015898a68a361896d3b89801b92a35a0ffa4b Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Tue, 23 May 2023 15:59:06 +0200 Subject: [PATCH 2/3] npm run format --- src/setup-python.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/setup-python.ts b/src/setup-python.ts index e589d8595..9231b31cd 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -35,7 +35,9 @@ async function run() { ); } else { if (version.trim().startsWith('2')) { - core.warning('The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672') + core.warning( + 'The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672' + ); } const installed = await finder.useCpythonVersion(version, arch); pythonVersion = installed.version; From 6546cbdc044dfd34a2975f79f61ee27430beb24d Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Tue, 23 May 2023 16:20:48 +0200 Subject: [PATCH 3/3] remove ubuntu-18.04 --- .github/workflows/test-pypy.yml | 2 +- .github/workflows/test-python.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-pypy.yml b/.github/workflows/test-pypy.yml index 2bd044106..520a79462 100644 --- a/.github/workflows/test-pypy.yml +++ b/.github/workflows/test-pypy.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-latest] + os: [macos-latest, windows-latest, ubuntu-latest] pypy: - 'pypy-2.7' - 'pypy-3.7' diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 8f2330152..80c8be703 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04] + os: [macos-latest, windows-latest, ubuntu-20.04] steps: - name: Checkout uses: actions/checkout@v2 @@ -38,7 +38,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04] + os: [macos-latest, windows-latest, ubuntu-20.04] python: [3.5.4, 3.6.7, 3.7.5, 3.8.1] steps: - name: Checkout @@ -68,7 +68,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04] + os: [macos-latest, windows-latest, ubuntu-20.04] steps: - name: Checkout uses: actions/checkout@v2 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy