forked from Urban-Meteorology-Reading/SUEWS
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge branch 'matthewp/issue324' into sunt05/issue309"
- Loading branch information
Showing
14 changed files
with
120 additions
and
380 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 |
---|---|---|
|
@@ -8,15 +8,14 @@ on: | |
- "src/supy_driver/**" | ||
- ".github/workflows/build-publish_to_pypi.yml" | ||
- "test/**" | ||
- "pyproject.toml" | ||
|
||
pull_request: | ||
paths: # PR events containing matching files | ||
- "src/suews/**" | ||
- "src/supy/**" | ||
- "src/supy_driver/**" | ||
- ".github/workflows/build-publish_to_pypi.yml" | ||
- "pyproject.toml" | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheel for ${{ matrix.python }}-${{ matrix.buildplat[1] }} ${{ matrix.buildplat[2] }} | ||
|
@@ -29,31 +28,13 @@ jobs: | |
- [macos-latest, macosx, arm64] | ||
- [windows-2019, win, AMD64] | ||
|
||
python: ["cp39", "cp310", "cp311", "cp312", "cp313"] | ||
# exclude: | ||
# - buildplat: [macos-latest, macosx, arm64] | ||
# python: ["cp38", "cp39"] | ||
python: ["cp310", "cp311", "cp312"] | ||
|
||
fail-fast: false | ||
|
||
env: | ||
IS_32_BIT: ${{ matrix.buildplat[2] == 'x86' }} | ||
WHEEL_NAME: ${{ matrix.python }}-${{ matrix.buildplat[1] }}-${{ matrix.buildplat[2] }} | ||
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}* | ||
CIBW_ARCHS: ${{ matrix.buildplat[2] }} | ||
CIBW_ENVIRONMENT_PASS_LINUX: RUNNER_OS | ||
CIBW_BEFORE_ALL_MACOS: > | ||
brew install gfortran && | ||
brew unlink gfortran && | ||
brew link gfortran | ||
CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel" # Use delvewheel on windows | ||
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}" | ||
CIBW_TEST_REQUIRES: pytest | ||
CIBW_TEST_COMMAND_MACOS: "python -m pytest '{project}/test'" | ||
CIBW_TEST_COMMAND_LINUX: "python -m pytest '{project}/test'" | ||
CIBW_TEST_COMMAND_WINDOWS: "python -m pytest {project}\\test" | ||
CIBW_TEST_SKIP: "cp310-macosx_arm64" # skip test on arm64 on python 3.10 - cannot pass the water balance test for unknown reason even though it should be the same as x86_64 | ||
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.buildplat[0] == 'macos-13' && '13.0' || '14.0' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -66,7 +47,18 @@ jobs: | |
python-version: 3.12 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}* | ||
CIBW_ARCHS: ${{ matrix.buildplat[2] }} | ||
CIBW_ENVIRONMENT_PASS_LINUX: RUNNER_OS | ||
CIBW_BEFORE_ALL_MACOS: "brew install gfortran && brew unlink gfortran && brew link gfortran" | ||
CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel" # Use delvewheel on windows | ||
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}" | ||
CIBW_TEST_REQUIRES: pytest | ||
CIBW_TEST_COMMAND_MACOS: "python -m pytest '{project}/test'" | ||
CIBW_TEST_COMMAND_LINUX: "python -m pytest '{project}/test'" | ||
CIBW_TEST_COMMAND_WINDOWS: "python -m pytest {project}\\test" | ||
|
||
- name: Setup tmate session for debugging | ||
if: failure() | ||
|
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
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
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
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
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
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
Oops, something went wrong.