nopath #9077
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Docker | |
on: | |
push: | |
branches: | |
- "**" | |
paths-ignore: | |
- ".github/workflows/docs.yml" | |
- ".github/workflows/wheels*" | |
- ".gitmodules" | |
- "docs/**" | |
- "wheels/**" | |
pull_request: | |
paths-ignore: | |
- ".github/workflows/docs.yml" | |
- ".github/workflows/wheels*" | |
- ".gitmodules" | |
- "docs/**" | |
- "wheels/**" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
docker: [ | |
centos-stream-9-amd64, | |
ubuntu-22.04-jammy-amd64, | |
ubuntu-24.04-noble-amd64, | |
] | |
dockerTag: [main] | |
name: ${{ matrix.docker }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Build system information | |
run: python3 .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 }} | |
- name: Docker build | |
run: | | |
# The Pillow user in the docker container is UID 1001 | |
sudo chown -R 1001 $GITHUB_WORKSPACE | |
docker run --name pillow_container -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} | |
sudo chown -R runner $GITHUB_WORKSPACE | |
- name: After success | |
run: | | |
sudo docker cp pillow_container:/Pillow /Pillow | |
pil_path=`docker exec pillow_container /vpy3/bin/python -c 'import os, PIL;print(os.path.realpath(os.path.dirname(PIL.__file__)))'` | |
sudo docker cp pillow_container:$pil_path $pil_path | |
.ci/after_success.sh | |
env: | |
MATRIX_DOCKER: ${{ matrix.docker }} | |
- name: Upload coverage | |
uses: codecov/codecov-action@v5 | |
with: | |
flags: GHA_Docker | |
name: ${{ matrix.docker }} | |
token: ${{ secrets.CODECOV_ORG_TOKEN }} | |
success: | |
permissions: | |
contents: none | |
needs: build | |
runs-on: ubuntu-latest | |
name: Docker Test Successful | |
steps: | |
- name: Success | |
run: echo Docker Test Successful |