@@ -453,7 +453,7 @@ jobs:
453
453
strategy :
454
454
fail-fast : false
455
455
matrix :
456
- target : [aarch64, armv7, s390x]
456
+ target : [aarch64, armv7, s390x, ppc64le ]
457
457
distro : ['ubuntu22.04']
458
458
include :
459
459
- target : aarch64
@@ -469,38 +469,32 @@ jobs:
469
469
path : dist
470
470
471
471
- uses : uraimo/run-on-arch-action@v2.5.0
472
- if : matrix.distro == 'ubuntu22.04'
473
- name : Install & test on Ubuntu
472
+ name : install & test
474
473
with :
475
474
arch : ${{ matrix.target }}
476
475
distro : ${{ matrix.distro }}
477
476
githubToken : ${{ github.token }}
478
477
install : |
479
- apt-get update
480
- apt-get install -y --no-install-recommends python3 python3-pip
478
+ set -x
479
+ if command -v apt-get &> /dev/null; then
480
+ echo "installing python & pip with apt-get..."
481
+ apt-get update
482
+ apt-get install -y --no-install-recommends python3 python3-pip
483
+ else
484
+ echo "installing python & pip with apk..."
485
+ apk update
486
+ apk add python3 py3-pip
487
+ fi
481
488
run : |
489
+ set -x
490
+ # this is required so that pytest uses the installed pydantic-core package
482
491
rm -r pydantic_core
483
- pip install -U pip typing-extensions
484
- pip install -r tests/requirements.txt
485
- pip install pydantic-core --no-index --no-deps --find-links dist --force-reinstall
486
- pytest
487
-
488
- - uses : uraimo/run-on-arch-action@v2.5.0
489
- if : matrix.distro == 'alpine_latest'
490
- name : Install & test on Alpine
491
- with :
492
- arch : ${{ matrix.target }}
493
- distro : ${{ matrix.distro }}
494
- githubToken : ${{ github.token }}
495
- install : |
496
- apk update
497
- apk add python3 py3-pip
498
- run : |
499
- rm -r pydantic_core
500
- pip install -U pip typing-extensions
501
- pip install -r tests/requirements.txt
502
- pip install pydantic-core --no-index --no-deps --find-links dist --force-reinstall
503
- pytest
492
+ # typing-extensions isn't automatically installed because of `--no-index --no-deps`
493
+ python3 -m pip install -U pip typing-extensions
494
+ python3 -m pip install -r tests/requirements.txt
495
+ python3 -m pip install pydantic-core --no-index --no-deps --find-links dist --force-reinstall
496
+ python3 -m pytest
497
+ python3 -c 'import pydantic_core._pydantic_core; print(pydantic_core._pydantic_core.__version__)'
504
498
505
499
test-builds-os :
506
500
name : test build on ${{ matrix.os }}
0 commit comments