Skip to content

Fixes for numpy 2.0 #116

Fixes for numpy 2.0

Fixes for numpy 2.0 #116

Workflow file for this run

name: Test on Cygwin
on: [push, pull_request]
jobs:
cygwin:
runs-on: windows-latest
steps:
- run: git config --global core.autocrlf input
- uses: actions/checkout@v4
- name: Install Cygwin
uses: cygwin/cygwin-install-action@v4
with:
platform: x86_64
install-dir: 'C:\tools\cygwin'
packages: >-
python39-devel python39-pip python-pip-wheel python-setuptools-wheel
liblapack-devel liblapack0 gcc-fortran git dash python39-numpy automake make
- name: pip cache
uses: actions/cache@v4
with:
path: 'C:\tools\cygwin\home\runneradmin\.local'
key: ${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
- name: Set Windows PATH
uses: egor-tensin/cleanup-path@v4
with:
dirs: 'C:\tools\cygwin\bin;C:\tools\cygwin\lib\lapack'
- name: Verify that bash is Cygwin bash
run: |
command bash
bash -c "uname -svrmo"
- name: Tell Cygwin's git about this repository.
run: |
dash -c "which git; /usr/bin/git config --system --add safe.directory /cygdrive/d/a/gfort2py/gfort2py"
- name: Verify python version
# Make sure it's the Cygwin one, not a Windows one
run: |
dash -c "which python3.9; /usr/bin/python3.9 --version -V"
- name: Install dependencies
shell: "C:\\tools\\cygwin\\bin\\bash.exe -o igncr -eo pipefail {0}"
run: |
/usr/bin/python3.9 -m pip install --upgrade pip
/usr/bin/python3.9 -m pip install --upgrade --user build wheel
/usr/bin/python3.9 -m pip install --upgrade --user pytest dataclasses_json platformdirs importlib_metadata
cygpath -w $(/usr/bin/python3.9 -c 'import dataclasses_json;print(dataclasses_json.__file__)')
/usr/bin/python3.9 -m pip install cpyparsing
- name: Install
shell: "C:\\tools\\cygwin\\bin\\bash.exe -o igncr -eo pipefail {0}"
run: |
/usr/bin/python3.9 -m pip install .
- name: Run tests
shell: "C:\\tools\\cygwin\\bin\\bash.exe -o igncr -eo pipefail {0}"
run: |
/usr/bin/python3.9 -m pytest -v