Make macOS deployment target check robust against float precision errors. #231
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: Build | |
on: | |
pull_request: | |
paths: | |
- ".clang-format" | |
- ".clang-tidy" | |
- ".github/workflows/build_wheels.yml" | |
- ".gitmodules" | |
- "clp_ffi_py/**" | |
- "MANIFEST.in" | |
- "pyproject.toml" | |
- "README.md" | |
- "requirements-dev.txt" | |
- "setup.py" | |
- "src/**" | |
- "tests/**" | |
push: | |
paths: | |
- ".clang-format" | |
- ".clang-tidy" | |
- ".github/workflows/build_wheels.yml" | |
- ".gitmodules" | |
- "clp_ffi_py/**" | |
- "MANIFEST.in" | |
- "pyproject.toml" | |
- "README.md" | |
- "requirements-dev.txt" | |
- "setup.py" | |
- "src/**" | |
- "tests/**" | |
concurrency: | |
group: "${{github.workflow}}-${{github.ref}}" | |
# Cancel in-progress jobs for efficiency | |
cancel-in-progress: true | |
jobs: | |
linters: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- run: | | |
pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
- run: docformatter --check --diff clp_ffi_py tests | |
- run: black --diff --check clp_ffi_py tests | |
- run: ruff check --output-format=github clp_ffi_py tests | |
- run: mypy clp_ffi_py tests | |
- run: | | |
find src/clp_ffi_py/ -type f | xargs clang-format --dry-run --Werror | |
build_wheels: | |
needs: [linters] | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, macos-12] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up QEMU | |
if: runner.os == 'Linux' | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: all | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_ARCHS_LINUX: auto aarch64 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: wheel-${{ matrix.os }} | |
path: ./wheelhouse/*.whl |