diff --git a/.github/workflows/integrations.yml b/.github/workflows/integrations.yml index 87bd013f99a..b1465fa8019 100644 --- a/.github/workflows/integrations.yml +++ b/.github/workflows/integrations.yml @@ -91,7 +91,7 @@ jobs: - name: Run integration build run: | ./tests/ci/integration/run_socat_integration.sh - python: + python-main: runs-on: ubuntu-latest steps: - name: Install OS Dependencies @@ -101,7 +101,18 @@ jobs: - uses: actions/checkout@v3 - name: Build AWS-LC, build python, run tests run: | - ./tests/ci/integration/run_python_integration.sh + ./tests/ci/integration/run_python_integration.sh main + python-releases: + runs-on: ubuntu-latest + steps: + - name: Install OS Dependencies + run: | + sudo apt-get update + sudo apt-get -y --no-install-recommends install cmake gcc ninja-build golang make + - uses: actions/checkout@v3 + - name: Build AWS-LC, build python, run tests + run: | + ./tests/ci/integration/run_python_integration.sh 3.10 3.11 3.12 bind9: runs-on: ubuntu-latest steps: diff --git a/tests/ci/integration/run_python_integration.sh b/tests/ci/integration/run_python_integration.sh index 7bdc3245df3..09bc9832518 100755 --- a/tests/ci/integration/run_python_integration.sh +++ b/tests/ci/integration/run_python_integration.sh @@ -106,6 +106,11 @@ function python_patch() { done } +if [[ "$#" -eq "0" ]]; then + echo "No python branches provided for testing" + exit 1 +fi + mkdir -p ${SCRATCH_FOLDER} rm -rf ${SCRATCH_FOLDER}/* cd ${SCRATCH_FOLDER} @@ -126,9 +131,8 @@ pushd ${PYTHON_SRC_FOLDER} which sysctl && ( sysctl -w net.ipv6.conf.all.disable_ipv6=0 || /bin/true ) echo 0 >/proc/sys/net/ipv6/conf/all/disable_ipv6 || /bin/true -# NOTE: cpython keeps a unique branch per version, add version branches here # NOTE: As we add more versions to support, we may want to parallelize here -for branch in 3.10 3.11 3.12 main; do +for branch in "$@"; do python_patch ${branch} python_build ${branch} python_run_tests ${branch}