-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.24 KB
/
python-sample.yml
File metadata and controls
41 lines (38 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
permissions:
contents: read
# .github/workflows/python-sample.yml
name: Run Python Sample (ppc64le, s390x)
on:
workflow_dispatch:
jobs:
run-python-sample:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
arch: ppc64le
- os: ubuntu-24.04
arch: s390x
- os: ubuntu-latest
arch: x64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: IBM/setup-python-pz@main
with:
python-version: 3.14
architecture: ${{ matrix.arch }}
- name: Test Python installation
run: |
python --version
which python
python -c "import sys; print('Python executable:', sys.executable)"
python -c "import platform; print('Platform:', platform.platform())"
python -c "import site; print('Site packages:', site.getsitepackages())"
python -m pip --version
python -c "import ssl; print('SSL available:', ssl.OPENSSL_VERSION)"
python -c "import ctypes; print('ctypes available:', hasattr(__import__('ctypes'), 'CDLL'))"
python -c "print('Basic math:', 2 + 2)"