diff --git a/.github/scripts/test-windows.ps1 b/.github/scripts/test-windows.ps1 index 173d5c0..c2c70d0 100644 --- a/.github/scripts/test-windows.ps1 +++ b/.github/scripts/test-windows.ps1 @@ -22,7 +22,6 @@ function Initialize-Python { } # Check Python version/arch exec { python -c "import platform; assert platform.python_version().startswith('$env:PYTHON_VERSION')" } - exec { python -c "import struct; assert struct.calcsize('P') * 8 == $env:PYTHON_ARCH" } } function Create-VEnv { @@ -63,8 +62,8 @@ function Exit-VEnv { if (!$env:PYTHON_VERSION) { throw "PYTHON_VERSION env var missing, must be x.y" } -if ($env:PYTHON_ARCH -ne '32' -and $env:PYTHON_ARCH -ne '64') { - throw "PYTHON_ARCH env var must be 32 or 64" +if ($env:PYTHON_ARCH -ne 'x86' -and $env:PYTHON_ARCH -ne 'x86_64') { + throw "PYTHON_ARCH env var must be x86 or x86_64" } $PYVER = ($env:PYTHON_VERSION).Replace('.', '') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2955cb8..db425d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,7 +136,7 @@ jobs: # container: ${{ matrix.config.docker-image }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true @@ -295,7 +295,7 @@ jobs: needs: build steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true @@ -358,7 +358,7 @@ jobs: needs: build steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v4