Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python 3.12 #36

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add python 3.12
ethho committed Jul 29, 2024
commit a933b1ab26b5202969ae5a4e017cd3133cea7e77
24 changes: 22 additions & 2 deletions .github/workflows/development.yaml
Original file line number Diff line number Diff line change
@@ -8,6 +8,10 @@ jobs:
strategy:
matrix:
include:
- distro: alpine
conda_ver: '22.11.1'
py_ver: '3.12'
platform: linux/amd64
- distro: alpine
conda_ver: '22.11.1'
py_ver: '3.11'
@@ -28,6 +32,10 @@ jobs:
conda_ver: '22.11.1'
py_ver: '3.7'
platform: linux/amd64
- distro: debian
conda_ver: '22.11.1'
py_ver: '3.12'
platform: linux/amd64
- distro: debian
conda_ver: '22.11.1'
py_ver: '3.11'
@@ -98,6 +106,9 @@ jobs:
strategy:
matrix:
include:
- distro: alpine
py_ver: '3.12'
platform: linux/amd64
- distro: alpine
py_ver: '3.11'
platform: linux/amd64
@@ -113,6 +124,9 @@ jobs:
- distro: alpine
py_ver: '3.7'
platform: linux/amd64
- distro: debian
py_ver: '3.12'
platform: linux/amd64
- distro: debian
py_ver: '3.11'
platform: linux/amd64
@@ -171,6 +185,9 @@ jobs:
strategy:
matrix:
include:
- distro: alpine
py_ver: '3.12'
platform: linux/amd64
- distro: alpine
py_ver: '3.11'
platform: linux/amd64
@@ -186,6 +203,9 @@ jobs:
- distro: alpine
py_ver: '3.7'
platform: linux/amd64
- distro: debian
py_ver: '3.12'
platform: linux/amd64
- distro: debian
py_ver: '3.11'
platform: linux/amd64
@@ -237,7 +257,7 @@ jobs:
docker push "${IMAGE}:${TAG}"
docker tag "${IMAGE}:${TAG}" "${IMAGE}:${TAG}-${GITHUB_SHA:0:7}"
docker push "${IMAGE}:${TAG}-${GITHUB_SHA:0:7}"
[ "$PY_VER" == "3.11" ] && [ "$DISTRO" == "debian" ] \
[ "$PY_VER" == "3.12" ] && [ "$DISTRO" == "debian" ] \
&& docker tag "${IMAGE}:${TAG}" "${IMAGE}:latest" \
&& docker push "${IMAGE}:latest" \
|| echo "skipping 'latest' tag..."
@@ -282,4 +302,4 @@ jobs:
with:
branch: gh-pages
directory: gh-pages
github_token: ${{secrets.GITHUB_TOKEN}}
github_token: ${{secrets.GITHUB_TOKEN}}
5 changes: 4 additions & 1 deletion config/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## build

# PY_VER='3.12'
# CONDA_VER=22.11.1

# PY_VER='3.11'
# CONDA_VER=22.11.1

@@ -31,4 +34,4 @@ DISTRO=alpine
PACKAGE_MANAGER=apk

# DISTRO=debian
# PACKAGE_MANAGER=apt
# PACKAGE_MANAGER=apt
6 changes: 5 additions & 1 deletion tests/main.sh
Original file line number Diff line number Diff line change
@@ -45,7 +45,9 @@ IMAGE=$(echo $REF | awk -F':' '{print $1}')
SHELL_CMD_TEMPLATE="docker run --rm -i \$SHELL_CMD_FLAGS $REF \
$(docker inspect "$REF" --format '{{join .Config.Cmd " "}}') -c"
# determine reference size
if [ $DISTRO == alpine ] && [ $PY_VER == '3.11' ] && [ $PLATFORM == 'linux/amd64' ]; then
if [ $DISTRO == alpine ] && [ $PY_VER == '3.12' ] && [ $PLATFORM == 'linux/amd64' ]; then
SIZE_LIMIT=774
elif [ $DISTRO == alpine ] && [ $PY_VER == '3.11' ] && [ $PLATFORM == 'linux/amd64' ]; then
SIZE_LIMIT=774
elif [ $DISTRO == alpine ] && [ $PY_VER == '3.10' ] && [ $PLATFORM == 'linux/amd64' ]; then
SIZE_LIMIT=543
@@ -55,6 +57,8 @@ elif [ $DISTRO == alpine ] && [ $PY_VER == '3.8' ] && [ $PLATFORM == 'linux/amd6
SIZE_LIMIT=516
elif [ $DISTRO == alpine ] && [ $PY_VER == '3.7' ] && [ $PLATFORM == 'linux/amd64' ]; then
SIZE_LIMIT=481
elif [ $DISTRO == debian ] && [ $PY_VER == '3.12' ] && [ $PLATFORM == 'linux/amd64' ]; then
SIZE_LIMIT=897
elif [ $DISTRO == debian ] && [ $PY_VER == '3.11' ] && [ $PLATFORM == 'linux/amd64' ]; then
SIZE_LIMIT=897
elif [ $DISTRO == debian ] && [ $PY_VER == '3.10' ] && [ $PLATFORM == 'linux/amd64' ]; then