From 4d1160582a492cf6049c03922ccfc9173f0de135 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 26 Aug 2023 11:14:24 +0200 Subject: [PATCH] Update sandbox.yml --- .github/workflows/sandbox.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sandbox.yml b/.github/workflows/sandbox.yml index 9a9c3af..5f0cd73 100644 --- a/.github/workflows/sandbox.yml +++ b/.github/workflows/sandbox.yml @@ -139,7 +139,9 @@ jobs: python-version: "${{ matrix.python }}" allow-prereleases: true - name: Check 64b python + shell: bash run: | + set -euxo pipefail python -c "import sys; assert sys.maxsize == 9223372036854775807" python -c "import struct; assert struct.calcsize('P') == 8" @@ -158,7 +160,9 @@ jobs: allow-prereleases: true architecture: x86 - name: Check 32b python + shell: bash run: | + set -euxo pipefail python -c "import sys; assert sys.maxsize == 2147483647" python -c "import struct; assert struct.calcsize('P') == 4" @@ -171,6 +175,7 @@ jobs: python-version: "3.11" - name: Check 32b python run: | + set -eux pip install pyodide-build==0.23.4 pyodide venv .venv-pyodide source .venv-pyodide/bin/activate @@ -210,7 +215,7 @@ jobs: run: | docker run --platform linux/${{ matrix.platform }} -i --rm pyston/slim:latest /bin/sh << EOF set -eux - pyston -c "import sys; assert sys.maxsize == 2147483647" + pyston -c "import sys; assert sys.maxsize == 9223372036854775807" pyston -c "import struct; assert struct.calcsize('P') == 8" exit 0 EOF @@ -227,6 +232,7 @@ jobs: shell: bash run: | choco install ironpython + set -euxo pipefail ipy.exe -c "import sys; assert sys.maxsize == 2147483647" ipy.exe -c "import struct; assert struct.calcsize('P') == 8" ipy32.exe -c "import sys; assert sys.maxsize == 2147483647"