Skip to content

Commit

Permalink
Separate tip-of-main python CI job from releases
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Feb 26, 2024
1 parent d5d78d7 commit 032c87f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
8 changes: 6 additions & 2 deletions tests/ci/integration/run_python_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand Down

0 comments on commit 032c87f

Please sign in to comment.