Skip to content

Commit

Permalink
Temporarily skip local CRT install on 3.12+, fix job names
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed May 20, 2024
1 parent 2c2bc45 commit 3d774f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ jobs:
- "0"
- "1"
runs-on: ubuntu-latest
name: Python main (FIPS=${{ matrix.fips}} OPENSSL_IN_CRT=${{ matrix.openssl_in_crt }})
steps:
- name: Install OS Dependencies
run: |
Expand All @@ -134,6 +135,7 @@ jobs:
- "0"
- "1"
runs-on: ubuntu-latest
name: Python releases (FIPS=${{ matrix.fips}} OPENSSL_IN_CRT=${{ matrix.openssl_in_crt }})
steps:
- name: Install OS Dependencies
run: |
Expand Down
8 changes: 7 additions & 1 deletion tests/ci/integration/run_python_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,16 @@ function fetch_crt_python() {
}

function install_crt_python() {
python -c 'import ssl; print(ssl.OPENSSL_VERSION)' | grep "AWS-LC"
if ! python -c 'import sys; assert sys.version_info.minor < 12, f"{sys.version_info}"'; then
return
fi
# setupttols not installed by default on more recent python versions
# see https://github.com/python/cpython/issues/95299
python -m ensurepip
python -m pip install setuptools wheel
python -m pip install -e ${CRT_SRC_FOLDER}
python -m pip list
python -m pip install -e ${CRT_SRC_FOLDER} || bash -i
# below was adapted from aws-crt-python's CI
# https://github.com/awslabs/aws-crt-python/blob/d76c3dacc94c1aa7dfc7346a77be78dc990b5171/.github/workflows/ci.yml#L159
local awscrt_path=$(python -c "import _awscrt; print(_awscrt.__file__)")
Expand Down

0 comments on commit 3d774f4

Please sign in to comment.