Skip to content

Commit

Permalink
Add macos arm64 build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthomas23 committed Feb 3, 2023
1 parent 450eaeb commit 88b71bf
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .cirrus.yml
Expand Up @@ -8,16 +8,45 @@ linux_aarch64_test_task:

os_dependencies_script: |
apt update
apt install -yy git g++
apt install -yy g++
python_venv_script: |
which python
python --version
python -m pip install --upgrade pip setuptools
python -m venv venv
source venv/bin/activate
install_contourpy_script: |
python -m pip install -ve .[test]
python -m pip install -v .[test]
python -m pip list
run_tests_script: |
python -m pytest -v tests/
macos_arm64_test_task:
name: "macOS arm64 test"
macos_instance:
# https://github.com/cirruslabs/macos-image-templates
image: ghcr.io/cirruslabs/macos-monterey-xcode:14

pip_cache:
folder: ~/.cache/pip

os_dependencies_script: |
brew install python@3.10
export PATH=/opt/homebrew/opt/python@3.10/libexec/bin:$PATH
python_venv_script: |
which python
python --version
python -m pip install --upgrade pip setuptools
python -m venv venv
source venv/bin/activate
install_contourpy_script: |
python -m pip install -v .[test]
python -m pip list
run_tests_script: |
Expand Down

0 comments on commit 88b71bf

Please sign in to comment.