Skip to content

Update sandbox.yml

Update sandbox.yml #26

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
run: |
choco install ironpython
& 'C:\ProgramData\chocolatey\lib\ironpython\ipy.exe' -c "import sys; assert sys.maxsize == 9223372036854775807"
& 'C:\ProgramData\chocolatey\lib\ironpython\ipy.exe' -c "import struct; assert struct.calcsize('P') == 8"
& 'C:\ProgramData\chocolatey\lib\ironpython\ipy32.exe' -c "import sys; assert sys.maxsize == 2147483647"
& 'C:\ProgramData\chocolatey\lib\ironpython\ipy32.exe' -c "import struct; assert struct.calcsize('P') == 4"