STY: Commit suggestions from PR review.

This commit is contained in:
DWesl 2022-05-05 15:21:22 -04:00
parent 941ff61f17
commit 2067f60409
3 changed files with 7 additions and 12 deletions

View File

@ -25,10 +25,7 @@ if [[ $(uname) != CYGWIN* ]]; then
cmake meson imagemagick libharfbuzz-dev libfribidi-dev
fi
if [[ $(uname -mo) != i*86" Cygwin" ]]; then
python3 -m pip install --upgrade pip
fi
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade wheel
python3 -m pip install coverage
python3 -m pip install defusedxml

View File

@ -9,11 +9,10 @@ jobs:
fail-fast: false
matrix:
python-minor-version: [7, 8, 9]
architecture: ["x86_64"]
timeout-minutes: 40
name: Python 3.${{ matrix.python-minor-version }} ${{ matrix.architecture }}
name: Python 3.${{ matrix.python-minor-version }}
steps:
- name: Fix line endings
@ -26,7 +25,7 @@ jobs:
- name: Install Cygwin
uses: cygwin/cygwin-install-action@v2
with:
platform: ${{ matrix.architecture }}
platform: x86_64
packages: >
ImageMagick gcc-g++ ghostscript jpeg libfreetype-devel
libimagequant-devel libjpeg-devel liblapack-devel
@ -50,9 +49,9 @@ jobs:
uses: actions/cache@v3
with:
path: 'C:\cygwin\home\runneradmin\.cache\pip'
key: ${{ runner.os }}-cygwin-${{ matrix.architecture }}-pip3.${{ matrix.python-minor-version }}-${{ hashFiles('.ci/install.sh') }}
key: ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-${{ hashFiles('.ci/install.sh') }}
restore-keys: |
${{ runner.os }}-cygwin-${{ matrix.architecture }}-pip3.${{ matrix.python-minor-version }}-
${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-
- name: Ensure correct python minor version used in scripts
shell: bash.exe -eo pipefail -o igncr "{0}"
@ -71,7 +70,6 @@ jobs:
bash.exe .ci/install.sh
- name: Install a different NumPy
if: matrix.architecture == 'x86_64'
shell: dash.exe -l "{0}"
run: |
python3 -m pip install -U 'numpy!=1.21.*'
@ -119,7 +117,7 @@ jobs:
with:
file: ./coverage.xml
flags: GHA_Cygwin
name: Cygwin Python 3.${{ matrix.python-minor-version }} ${{ matrix.architecture }}
name: Cygwin Python 3.${{ matrix.python-minor-version }}
success:
needs: build

View File

@ -485,7 +485,7 @@ These platforms are built and tested for every change.
| +----------------------------+---------------------+
| | 3.9 (MinGW) | x86, x86-64 |
| +----------------------------+---------------------+
| | 3.7, 3.8, 3.9 (Cygwin) | x86, x86-64 |
| | 3.7, 3.8, 3.9 (Cygwin) | x86-64 |
+----------------------------------+----------------------------+---------------------+