Skip to content

Commit 7708e4b

Browse files
committed
Improved Docker coverage reporting
1 parent 2486361 commit 7708e4b

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

.ci/after_success.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@
22

33
# gather the coverage data
44
python3 -m pip install coverage
5-
if [[ $MATRIX_DOCKER ]]; then
6-
python3 -m coverage xml --ignore-errors
7-
else
8-
python3 -m coverage xml
9-
fi
5+
python3 -m coverage xml

.github/workflows/test-docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ jobs:
9090
9191
- name: After success
9292
run: |
93-
PATH="$PATH:~/.local/bin"
9493
docker start pillow_container
94+
sudo docker cp pillow_container:/Pillow /Pillow
95+
sudo chown -R runner /Pillow
9596
pil_path=`docker exec pillow_container /vpy3/bin/python -c 'import os, PIL;print(os.path.realpath(os.path.dirname(PIL.__file__)))'`
9697
docker stop pillow_container
9798
sudo mkdir -p $pil_path
9899
sudo cp src/PIL/*.py $pil_path
100+
cd /Pillow
99101
.ci/after_success.sh
100-
env:
101-
MATRIX_DOCKER: ${{ matrix.docker }}
102102
103103
- name: Upload coverage
104104
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)