mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
CI: Set shell for Cygwin CI steps
Allows me to avoid .ci/build_cygwin.sh
This commit is contained in:
parent
805e8f10ba
commit
7605e46011
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
python3 -m coverage erase
|
|
||||||
make clean
|
|
||||||
CFLAGS="-coverage -Werror=implicit-function-declaration" python3 -m pip install -v --global-option="build_ext" .
|
|
||||||
python3 selftest.py
|
|
18
.github/workflows/test-cygwin.yml
vendored
18
.github/workflows/test-cygwin.yml
vendored
|
@ -53,8 +53,9 @@ jobs:
|
||||||
${{ runner.os }}-cygwin-${{ matrix.architecture }}-pip3.${{ matrix.python-minor-version }}-
|
${{ runner.os }}-cygwin-${{ matrix.architecture }}-pip3.${{ matrix.python-minor-version }}-
|
||||||
|
|
||||||
- name: Build system information
|
- name: Build system information
|
||||||
|
shell: dash.exe -l "{0}"
|
||||||
run: |
|
run: |
|
||||||
bash.exe -c "python3 .github/workflows/system-info.py"
|
python3 .github/workflows/system-info.py
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -62,20 +63,27 @@ jobs:
|
||||||
|
|
||||||
- name: Install a different NumPy
|
- name: Install a different NumPy
|
||||||
if: matrix.architecture == 'x86_64'
|
if: matrix.architecture == 'x86_64'
|
||||||
|
shell: dash.exe -l "{0}"
|
||||||
run: |
|
run: |
|
||||||
bash.exe -c "python3.${{ matrix.python-minor-version }} -m pip install -U 'numpy!=1.21.*'"
|
python3.${{ matrix.python-minor-version }} -m pip install -U 'numpy!=1.21.*'
|
||||||
|
|
||||||
- name: Check imports
|
- name: Check imports
|
||||||
|
shell: dash.exe -l "{0}"
|
||||||
run: |
|
run: |
|
||||||
bash.exe -c "python3.${{ matrix.python-minor-version }} -c 'import numpy as np; print(np.__version__)'"
|
python3.${{ matrix.python-minor-version }} -c 'import numpy as np; print(np.__version__)'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
shell: bash.exe --login -eo pipefail "{0}"
|
||||||
run: |
|
run: |
|
||||||
bash.exe .ci/build_cygwin.sh
|
python3 -m coverage erase
|
||||||
|
make clean
|
||||||
|
CFLAGS="-coverage -Werror=implicit-function-declaration" python3 -m pip install -v --global-option="build_ext" .
|
||||||
|
python3 selftest.py
|
||||||
|
|
||||||
- name: Rebase dlls
|
- name: Rebase dlls
|
||||||
|
shell: dash.exe -l "{0}"
|
||||||
run: |
|
run: |
|
||||||
bash.exe -c '/usr/bin/rebase --database $(find /usr{,/local}/lib/python3.${{ matrix.python-minor-version }}/site-packages src/PIL ${HOME}/.local/lib/ /usr/lib/lapack /usr/bin -name \*.dll -o -name \*.exe)'
|
/usr/bin/rebase --database $(find /usr{,/local}/lib/python3.${{ matrix.python-minor-version }}/site-packages src/PIL ${HOME}/.local/lib/ /usr/lib/lapack /usr/bin -name \*.dll -o -name \*.exe)
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user