Skip to content

Update sandbox.yml

Update sandbox.yml #28

Workflow file for this run

name: Python test bitness
on:
push:
branches:
- python-maxsize-sizeof
workflow_dispatch:
# allow manual runs on branches without a PR
jobs:
IronPython:
name: IronPython ${{ matrix.runner }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner: ["windows-latest"]
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
- name: Check python
shell: bash
run: |
choco install ironpython
ipy.exe -c "import sys; print(sys.maxsize)"
ipy.exe -c "import struct; print(struct.calcsize('P'))"
ipy32.exe -c "import sys; print(sys.maxsize)"
ipy32.exe -c "import struct; print(struct.calcsize('P'))"
ipy.exe -c "import sys; assert sys.maxsize == 2147483647"
ipy.exe -c "import struct; assert struct.calcsize('P') == 7"
ipy32.exe -c "import sys; assert sys.maxsize == 2147483647"
ipy32.exe -c "import struct; assert struct.calcsize('P') == 4"