Check MacOS compatibility #718
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
| name: Check MacOS compatibility | |
| # Run this workflow every time a new commit pushed to your repository | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - stable/* | |
| tags: | |
| - '*' | |
| pull_request: | |
| workflow_dispatch: | |
| # least privilege as default, should be overridden per job if necessary | |
| permissions: | |
| contents: read | |
| jobs: | |
| macos-deps: | |
| name: Install dev dependencies on MacOS | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| cache-dependency-path: 'requirements/*.txt' | |
| - name: Install OS-level packages | |
| run: | | |
| brew install pkg-config | |
| - name: Install dependencies | |
| run: | | |
| export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/ | |
| pip install -r requirements/dev.txt \ | |
| --use-pep517 \ | |
| --use-feature=no-binary-enable-wheel-cache | |
| env: | |
| STATIC_DEPS: 'true' |