-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
name: Test on Cygwin | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
cygwin_build_test: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Install Cygwin | ||
uses: cygwin/cygwin-install-action | ||
with: | ||
platform: x86_64 | ||
install-dir: 'C:\tools\cygwin' | ||
packages: >- | ||
python39-devel python39-pip python-pip-wheel python-setuptools-wheel | ||
gcc-fortran git dash | ||
- name: Set Windows PATH | ||
uses: egor-tensin/cleanup-path | ||
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 | ||
run: | | ||
dash -c "/usr/bin/python3.9 -m pip install --upgrade pip" | ||
dash -c "/usr/bin/python3.9 -m pip install build wheel pytest" | ||
- name: Install | ||
run: | | ||
dash -c "/usr/bin/python3.9 -m pip install ." | ||
- name: Run tests | ||
run: | | ||
dash -c "/usr/bin/python3.9 -m pytest -v" | ||