From 903ec9723d425daba09eeaacdb0fea7427cea35c Mon Sep 17 00:00:00 2001 From: nulano Date: Fri, 11 Dec 2020 20:41:02 +0100 Subject: [PATCH] move tests for arm64v8, ppc64le, s390x from Travis CI to GHA using Docker and aptman/qus --- .github/workflows/test-docker.yml | 17 +++++++++++++++++ .travis.yml | 29 ----------------------------- 2 files changed, 17 insertions(+), 29 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/test-docker.yml b/.github/workflows/test-docker.yml index f6814f932..eb173c359 100644 --- a/.github/workflows/test-docker.yml +++ b/.github/workflows/test-docker.yml @@ -10,6 +10,11 @@ jobs: fail-fast: false matrix: docker: [ + # Run slower jobs first to give them a headstart and reduce waiting time + ubuntu-20.04-focal-arm64v8, + ubuntu-20.04-focal-ppc64le, + ubuntu-20.04-focal-s390x, + # Then run the remainder alpine, amazon-2-amd64, arch, @@ -22,6 +27,13 @@ jobs: ubuntu-20.04-focal-amd64, ] dockerTag: [master] + include: + - docker: "ubuntu-20.04-focal-arm64v8" + qemu-arch: "aarch64" + - docker: "ubuntu-20.04-focal-ppc64le" + qemu-arch: "ppc64le" + - docker: "ubuntu-20.04-focal-s390x" + qemu-arch: "s390x" name: ${{ matrix.docker }} @@ -31,6 +43,11 @@ jobs: - name: Build system information run: python .github/workflows/system-info.py + - name: Set up QEMU + if: "matrix.qemu-arch" + run: | + docker run --rm --privileged aptman/qus -s -- -p ${{ matrix.qemu-arch }} + - name: Docker pull run: | docker pull pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e239ed496..000000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -dist: xenial -language: python -cache: pip - -notifications: - irc: "chat.freenode.net#pil" - -matrix: - fast_finish: true - include: - - python: "3.6" - arch: arm64 - - python: "3.7" - arch: ppc64le - - python: "3.8" - arch: s390x - -install: - - | - .ci/install.sh; - -script: - - | - .ci/build.sh - .ci/test.sh - -after_success: - - | - .ci/after_success.sh