Update lnx_fiona.yaml with 3.11 #6
Workflow file for this run
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
--- | |
name: MacOS wheels and test ARM64 | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
WHEEL_SDIR: wheelhouse | |
SETUPTOOLS_USE_DISTUTILS: stdlib | |
jobs: | |
build_pyproj: | |
name: pyproj ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ARM64" ] | |
python: [ "3.9", "3.10" ] | |
platform: [ "arm64"] | |
macos-target: [ "11" ] | |
os-name: ["osx"] | |
env: | |
BUILD_COMMIT: 3.4.0 | |
PLAT: "${{ matrix.platform }}" | |
MB_PYTHON_VERSION: "${{ matrix.python }}" | |
MB_ML_VER: "2014" | |
BUILD_DEPENDS: "cython wheel" | |
TEST_DEPENDS: "cython" | |
TRAVIS_OS_NAME: ${{ matrix.os-name }} | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup cmake | |
run: | | |
brew install cmake | |
- name: Get code of pyproj | |
env: | |
REPO_DIR: pyproj | |
WHEEL_SDIR: wheelhouse | |
SETUPTOOLS_USE_DISTUTILS: stdlib | |
BUILD_COMMIT: 3.4.0 | |
run: | | |
bash -x .github/workflows/build.sh | |
- name: Build Wheel of pyproj | |
env: | |
REPO_DIR: pyproj | |
WHEEL_SDIR: wheelhouse | |
SETUPTOOLS_USE_DISTUTILS: stdlib | |
BUILD_COMMIT: 3.4.0 | |
run: | | |
bash -x .github/workflows/wheel.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: wheelhouse | |
build_Fiona: | |
name: Fiona ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ARM64" ] | |
python: [ "3.9", "3.10" ] | |
platform: [ "arm64"] | |
macos-target: [ "11" ] | |
os-name: ["osx"] | |
env: | |
BUILD_COMMIT: 1.8.21 | |
PLAT: "${{ matrix.platform }}" | |
MB_PYTHON_VERSION: "${{ matrix.python }}" | |
MB_ML_VER: "2014" | |
BUILD_DEPENDS: "oldest-supported-numpy cython==0.29.26 wheel==0.34.2" | |
TEST_DEPENDS: "oldest-supported-numpy attrs==21.4.0 pytest==6.2.5 click==8.0.3 mock boto3 packaging hypothesis==4.38.1 wheel==0.34.2 pytz" | |
TRAVIS_OS_NAME: ${{ matrix.os-name }} | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install cmake and print python version | |
run: | | |
brew install cmake | |
echo "check python3" | |
python3 -c "import sys; print(sys.version)" | |
- name: Get Library | |
env: | |
REPO_DIR: Fiona | |
WHEEL_SDIR: wheelhouse | |
SETUPTOOLS_USE_DISTUTILS: stdlib | |
BUILD_COMMIT: 1.8.21 | |
run: | | |
bash -x .github/workflows/build.sh | |
- name: Build Wheel of Fiona | |
env: | |
REPO_DIR: Fiona | |
WHEEL_SDIR: wheelhouse | |
SETUPTOOLS_USE_DISTUTILS: stdlib | |
BUILD_COMMIT: 1.8.21 | |
BUILD_DEPENDS: "oldest-supported-numpy cython==0.29.26 wheel==0.34.2" | |
TEST_DEPENDS: "oldest-supported-numpy attrs==21.4.0 pytest==6.2.5 click==8.0.3 mock boto3 packaging hypothesis==4.38.1 wheel==0.34.2 pytz" | |
run: | | |
bash -x .github/workflows/wheel.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: wheelhouse | |
build_GDAL: | |
name: GDAL ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ARM64" ] | |
python: [ "3.9", "3.10" ] | |
platform: [ "arm64"] | |
macos-target: [ "11" ] | |
os-name: ["osx"] | |
env: | |
BUILD_COMMIT: v3.4.3 | |
PLAT: "${{ matrix.platform }}" | |
MB_PYTHON_VERSION: "${{ matrix.python }}" | |
MB_ML_VER: "2014" | |
BUILD_DEPENDS: "numpy==1.23.3 wheel" | |
TEST_DEPENDS: "numpy==1.23.3" | |
TRAVIS_OS_NAME: ${{ matrix.os-name }} | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup cmake | |
run: | | |
brew install cmake | |
- name: Get code of gdal | |
env: | |
REPO_DIR: gdal | |
WHEEL_SDIR: wheelhouse | |
SETUPTOOLS_USE_DISTUTILS: stdlib | |
BUILD_COMMIT: v3.4.3 | |
run: | | |
bash -x .github/workflows/build.sh | |
- name: Build Wheel of GDAL | |
env: | |
REPO_DIR: gdal/gdal/swig/python | |
WHEEL_SDIR: wheelhouse | |
SETUPTOOLS_USE_DISTUTILS: stdlib | |
BUILD_COMMIT: v3.4.3 | |
run: | | |
bash -x .github/workflows/wheel.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: wheelhouse | |
test_wheel: | |
needs: [build_GDAL, build_pyproj, build_Fiona] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ARM64" ] | |
python: [ "3.9", "3.10" ] | |
platform: [ "arm64"] | |
macos-target: [ "11" ] | |
os-name: ["osx"] | |
env: | |
BRANCH_TEST: master | |
PYTHON_VERSION: "${{ matrix.python }}" | |
steps: | |
- name: Install cmake and print python version | |
run: | | |
brew install python@${PYTHON_VERSION} | |
echo "check python3" | |
python${PYTHON_VERSION} -c "import sys; print(sys.version)" | |
- name: download artifact | |
uses: actions/download-artifact@v3 | |
id: download | |
with: | |
name: wheels | |
path: wheelhouse | |
- name: 'Echo artifact download path' | |
run: echo ${{steps.download.outputs.download-path}} | |
- name: Test wheels with python ${{ matrix.python }} | |
shell: bash | |
run: | | |
set -x | |
echo "engine installation to test wheel" | |
python${PYTHON_VERSION} -m venv $HOME/openquake | |
source $HOME/openquake/bin/activate | |
pip install -U pip wheel setuptools | |
pip install install pytest | |
cd $HOME | |
git clone https://github.com/gem/oq-engine.git | |
cd oq-engine && git checkout ${BRANCH_TEST} | |
git status | |
pip install -e . | |
cd ${{steps.download.outputs.download-path}} | |
pwd | |
ls -lrt | |
PYCUT=`echo "${PYTHON_VERSION//.}"` | |
ls *${PYCUT}* | |
#wheel="$(ls *`echo ${{ matrix.python-version }} | tr -d .`*.whl)" | |
#echo ${wheel} | |
#pip install --force-reinstall ${wheel} | |
pip install --force-reinstall *${PYCUT}* | |
cd $HOME/oq-engine | |
oq dbserver start | |
sleep 5 | |
pytest -vsx --color=yes openquake/hazardlib/tests/gsim/kotha_2020_test.py | |
pytest -vsx --color=yes openquake/sep/tests/test_utils.py | |
pytest -vsx --color=yes openquake/sep | |
pytest -vsx --color=yes openquake/calculators | |
oq engine --run https://downloads.openquake.org/jobs/risk_test.zip |