-
Notifications
You must be signed in to change notification settings - Fork 0
Add a cygwin build to the list of PR actions #12
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
Open
DWesl
wants to merge
31
commits into
master
Choose a base branch
from
cygwin-build
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
ed0d827
Add a cygwin build to the PR list.
DWesl f417501
Checkout the repository in the Cygwin build.
DWesl 4ca3555
Add more requirements to the cygwin setup.
DWesl 017f1fd
Try to cache the pip cache in the GitHub Actions cache.
DWesl 47c00f3
YAML syntax fix.
DWesl 9b54080
Move cache settings to with: block where they belong.
DWesl d1c3214
Fix syntax so config is actually in with: block.
DWesl f556932
Make pip config directory.
DWesl 34f61c5
Wrap everything in "bash -c".
DWesl 273a684
Tell SciPy which BLAS and LAPACK to use.
DWesl 057d0e6
Condense requirements files.
DWesl d5f078d
Update benchmark dependency versions.
DWesl ab7d422
Note that the cython implementation makes the wheels non-universal.
DWesl f5a7fac
Don't count linter helper files in coverage stats.
DWesl 5d3a170
Separate out wheel build and install steps, and check DLLs.
DWesl 9a319ea
Add the Cygwin bin and fallback lapack directories to PATH
DWesl 58ad57a
Stop trying to use variables for install path
DWesl ec4357b
Add C++ compiler to required packages
DWesl a31f115
CI: Update Cygwin build action
DWesl 5159099
CI: Update tested python versions.
DWesl 26b8e1f
CI: Specify python versions as strings.
DWesl eb8ca16
CI: Specify SciPy version to install.
DWesl 9622f5c
CI: Specify build dependencies for install
DWesl 4c48b60
CI: Check that NumPy imports
DWesl 6f6d198
CI: Check NumPy DLLs.
DWesl 19f80b7
CI: Update path to include current Cygwin dir
DWesl 7ac59a0
CI: Update SciPy version on Cygwin
DWesl fe2e10e
CI: Revert back to using SciPy 1.6
DWesl 1f94444
CI: Try installing SciPy 1.5
DWesl 27315e7
CI: Try adding Cygwin job with SciPy <1.0
DWesl 450dd86
CI: Try using SciPy 1.2
DWesl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -8,4 +8,4 @@ source=py_toeplitz | |
| fail_under=98 | ||
| show_missing=True | ||
| skip_covered=True | ||
| omit=*_flymake.py | ||
| omit=*_flymake.py | ||
This file contains hidden or 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,79 @@ | ||
| name: Cygwin Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: windows-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Setup cache for Cygwin and pip | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: | | ||
| ~/.cache/pip/ | ||
| C:\tools\cygwin\packages | ||
| key: ${{ runner.os }}-build-${{ hashFiles('requirements*.txt') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-build- | ||
| ${{ runner.os }}- | ||
| - name: Install Cygwin | ||
| id: install-cygwin | ||
| uses: egor-tensin/setup-cygwin@v3 | ||
| with: | ||
| platform: x64 | ||
| install-dir: 'C:\tools\cygwin' | ||
| packages: python38-devel python38-numpy python38-pytest python38-hypothesis python38-cython python38-pip python38-wheel python38-setuptools liblapack-devel libopenblas gcc-fortran | ||
| - name: Clean Windows PATH | ||
| uses: egor-tensin/cleanup-path@v1 | ||
| with: | ||
| dirs: 'C:\tools\cygwin\bin;C:\tools\cygwin\lib\lapack' | ||
| - name: Ask pip to use cache contents | ||
| run: | | ||
| bash -c "mkdir -p ~/.config/pip" | ||
| bash -c "echo >~/.config/pip/pip.conf $'[install]\nprefer-binary = True'" | ||
| - name: Install dependencies | ||
| env: | ||
| BLAS: /usr/lib/libblas.dll.a | ||
| LAPACK: /usr/lib/liblapack.dll.a | ||
| run: | | ||
| bash -c "python3.8 -m pip install --upgrade pip wheel" | ||
| bash -c "python3.8 -m pip install -r requirements.txt" | ||
| bash -c "python3.8 -m pip install -r requirements-test.txt" | ||
| - name: Build wheel | ||
| run: | | ||
| bash -c "python3.8 setup.py bdist_wheel" | ||
| - name: Install wheel | ||
| run: | | ||
| bash -c "python3.8 -m pip install dist/py_toeplitz*.whl" | ||
| - name: Check that pip installed the extensions | ||
| run: | | ||
| bash -c "python3.7 -m pip show py_toeplitz | ||
| bash -c "python3.7 -m pip show -f py_toeplitz | grep .dll" | ||
| echo >list_dlls_dos.sh 'site_packages=$(python3.7 -m pip show py_toeplitz | grep Location | cut -d " " -f 2 -); | ||
| dll_list=$(for name in $(python3.7 -m pip show -f py_toeplitz | grep -F .dll); do echo ${site_packages}/${name}; done) | ||
| ls -l ${dll_list} | ||
| file ${dll_list} | ||
| ldd ${dll_list} | ||
| cygcheck ${dll_list} | ||
| for name in ${dll_list}; | ||
| do | ||
| python3.7 -c "import "$(echo ${name} | sed -E -e "s|/home.*?site-packages/||g" -e "s|/|.|g" -e "s/.cpython-3.-x86(_64)?-cygwin.dll//g") | ||
| done | ||
| ' | ||
| bash -c "tr -d '\r' <list_dlls_dos.sh >list_dlls_unix.sh" | ||
| bash list_dlls_unix.sh | ||
| - name: Test with pytest | ||
| run: | | ||
| bash -c "python3.8 -m pip install pytest" | ||
| bash -c "python3.8 -m pip install ." | ||
| bash -c "python3.8 setup.py check" | ||
| bash -c "python3.8 -m pytest" | ||
| bash -c "python3.8 -m pytest --pyargs py_toeplitz --doctest-modules" | ||
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| -r requirements.txt | ||
| cython>=0.16 | ||
| numpy | ||
| scipy>-0.16.0 |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| -r requirements.txt | ||
| pytest-cov | ||
| hypothesis[numpy]>=4.38.0 | ||
| scipy |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.