Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Update Cygwin NumPy to 1.26 in Python 3.9 #7875

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions .github/workflows/test-cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
- name: Install Cygwin
uses: egor-tensin/setup-cygwin@v4
with:
install-dir: 'C:/tools/cygwin'
packages: >
gcc-g++
ghostscript
Expand Down Expand Up @@ -81,56 +82,57 @@ jobs:
wget
xorg-server-extra
zlib-devel
ninja cmake meson

- name: Add Lapack to PATH
uses: egor-tensin/cleanup-path@v4
with:
dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack'
dirs: 'C:\tools\cygwin\bin;C:\tools\cygwin\lib\lapack'

- name: Select Python version
run: |
ln -sf c:/tools/cygwin/bin/python3.${{ matrix.python-minor-version }} c:/tools/cygwin/bin/python3

- name: Get latest NumPy version
id: latest-numpy
shell: bash.exe -eo pipefail -o igncr "{0}"
shell: C:/tools/cygwin/bin/bash.exe -eo pipefail -o igncr "{0}"
run: |
python3 -m pip list --outdated | grep numpy | sed -r 's/ +/ /g' | cut -d ' ' -f 3 | sed 's/^/version=/' >> $GITHUB_OUTPUT

- name: pip cache
uses: actions/cache@v4
with:
path: 'C:\cygwin\home\runneradmin\.cache\pip'
path: 'C:\tools\cygwin\home\runneradmin\.cache\pip'
key: ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-numpy${{ steps.latest-numpy.outputs.version }}-${{ hashFiles('.ci/install.sh') }}
restore-keys: |
${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-numpy${{ steps.latest-numpy.outputs.version }}-

- name: Build system information
run: |
dash.exe -c "python3 .github/workflows/system-info.py"
C:/tools/cygwin/bin/dash.exe -c "python3 .github/workflows/system-info.py"

- name: Install dependencies
run: |
bash.exe .ci/install.sh
C:/tools/cygwin/bin/bash.exe .ci/install.sh

- name: Upgrade NumPy
shell: dash.exe -l "{0}"
shell: C:/tools/cygwin/bin/dash.exe -l "{0}"
run: |
python3 -m pip install -U "numpy<1.26"
python3 -m pip install -U numpy --config-settings=setup-args="-Dblas=blas" --config-settings=setup-args="-Dlapack=lapack"

- name: Build
shell: bash.exe -eo pipefail -o igncr "{0}"
shell: C:/tools/cygwin/bin/bash.exe -eo pipefail -o igncr "{0}"
run: |
.ci/build.sh

- name: Test
run: |
bash.exe xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
C:/tools/cygwin/bin/bash.exe xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh

- name: Prepare to upload errors
if: failure()
run: |
dash.exe -c "mkdir -p Tests/errors"
C:/tools/cygwin/bin/dash.exe -c "mkdir -p Tests/errors"

- name: Upload errors
uses: actions/upload-artifact@v4
Expand All @@ -141,7 +143,7 @@ jobs:

- name: After success
run: |
bash.exe .ci/after_success.sh
C:/tools/cygwin/bin/bash.exe .ci/after_success.sh

- name: Upload coverage
uses: codecov/[email protected]
Expand Down
Loading