Skip to content

test Jython

test Jython #33

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:
Jython64:
name: Jython 64b ${{ matrix.runner }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner: ["windows-latest", "ubuntu-latest", "macos-latest"]
steps:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
- name: Check python
shell: bash
run: |
curl -fsSLO https://repo1.maven.org/maven2/org/python/jython-standalone/2.7.3/jython-standalone-2.7.3.jar
java -jar jython-standalone-2.7.3.jar -c "import sys; assert sys.maxsize == 2147483647"
java -jar jython-standalone-2.7.3.jar -c "import struct; assert struct.calcsize('P') == 8"
Jython32:
name: Jython 32b ${{ matrix.runner }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner: ["windows-latest", "ubuntu-latest"]
steps:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
architecture: 'x86'
- name: Check python
shell: bash
run: |
curl -fsSLO https://repo1.maven.org/maven2/org/python/jython-standalone/2.7.3/jython-standalone-2.7.3.jar
java -jar jython-standalone-2.7.3.jar -c "import sys; assert sys.maxsize == 2147483647"
java -jar jython-standalone-2.7.3.jar -c "import struct; assert struct.calcsize('P') == 4"