mirror of
https://github.com/actions/python-versions.git
synced 2025-12-15 15:32:11 +00:00
Compare commits
17 Commits
3.10.0-alp
...
3.10.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50aa2873fc | ||
|
|
cf414aaddb | ||
|
|
139e1b9608 | ||
|
|
f4137da2f9 | ||
|
|
456c8c380c | ||
|
|
30a06d5828 | ||
|
|
d3614793c0 | ||
|
|
fab0879a3d | ||
|
|
105a61d2c8 | ||
|
|
9515b3b32a | ||
|
|
597694ec77 | ||
|
|
a6b76b25b6 | ||
|
|
3a4a0fd269 | ||
|
|
c4836579b7 | ||
|
|
ed01c1359f | ||
|
|
650a155a9a | ||
|
|
28d23216d1 |
34
.github/workflows/test-python-version.yml
vendored
Normal file
34
.github/workflows/test-python-version.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Test Python version
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Python version to build'
|
||||
required: true
|
||||
architecture:
|
||||
description: 'The target architecture (x86, x64) of the Python'
|
||||
required: false
|
||||
default: 'x64'
|
||||
|
||||
jobs:
|
||||
test-python:
|
||||
name: Test Python ${{ github.event.inputs.version }} ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
|
||||
steps:
|
||||
- name: Setup Python ${{ github.event.inputs.version }}
|
||||
uses: actions/setup-python@main
|
||||
with:
|
||||
python-version: ${{ github.event.inputs.version }}
|
||||
architecture: ${{ github.event.inputs.architecture }}
|
||||
|
||||
- name: Validate version
|
||||
run: |
|
||||
python --version
|
||||
shell: pwsh
|
||||
|
||||
- name: Run simple code
|
||||
run: python -c 'import math; print(math.factorial(5))'
|
||||
@@ -8,16 +8,6 @@ jobs:
|
||||
- checkout: self
|
||||
submodules: true
|
||||
|
||||
# We need this temporary step to have a consistent version of PowerShell on all images.
|
||||
- task: PowerShell@2
|
||||
displayName: 'Update PowerShell version for macOS'
|
||||
condition: eq(variables['Platform'], 'darwin')
|
||||
inputs:
|
||||
TargetType: inline
|
||||
script: |
|
||||
brew update
|
||||
brew cask upgrade powershell
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Build Python $(VERSION)'
|
||||
inputs:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import distutils.sysconfig
|
||||
from distutils.version import StrictVersion
|
||||
from distutils.version import LooseVersion
|
||||
import sysconfig
|
||||
import sys
|
||||
import platform
|
||||
@@ -43,7 +43,7 @@ else:
|
||||
### Validate macOS
|
||||
if os_type == 'Darwin':
|
||||
### Validate openssl links
|
||||
if StrictVersion(nativeVersion) < StrictVersion("3.7.0"):
|
||||
if LooseVersion(nativeVersion) < LooseVersion("3.7.0"):
|
||||
expected_ldflags = '-L/usr/local/opt/openssl@1.1/lib'
|
||||
ldflags = sysconfig.get_config_var('LDFLAGS')
|
||||
|
||||
|
||||
@@ -256,9 +256,10 @@ if sys.version_info > (3, 7):
|
||||
if sys.version_info > (3, 8):
|
||||
standard_library.remove('dummy_threading')
|
||||
|
||||
# 'symbol' module has been removed from Python 3.10
|
||||
# 'symbol' and 'formatter' modules have been removed from Python 3.10
|
||||
if sys.version_info >= (3, 10):
|
||||
standard_library.remove('symbol')
|
||||
standard_library.remove('formatter')
|
||||
|
||||
# Remove tkinter and Easter eggs
|
||||
excluded_modules = [
|
||||
@@ -270,7 +271,6 @@ excluded_modules = [
|
||||
def check_missing_modules(expected_modules):
|
||||
missing = []
|
||||
for module in expected_modules:
|
||||
print('Try to import module ', module)
|
||||
try:
|
||||
importlib.import_module(module)
|
||||
except:
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user