Merge pull request #522 from jdegenstein/dev

Add automatic testing workflow for arm64 MacOS
This commit is contained in:
jdegenstein 2024-02-01 16:50:30 -06:00 committed by GitHub
commit e6b9ca6e66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 45 additions and 3 deletions

View file

@ -0,0 +1,22 @@
name: 'Setup'
inputs:
python-version: # id of input
description: 'Python version'
required: true
runs:
using: "composite"
steps:
- name: python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install requirements
shell: bash
run: |
pip install wheel
pip install mypy
pip install pytest
pip install pylint
pip install https://github.com/jdegenstein/ocp-build-system/releases/download/7.7.2_macos_arm64_cp310/cadquery_ocp-7.7.2-cp310-cp310-macosx_11_0_arm64.whl
pip install .

View file

@ -1,9 +1,9 @@
name: tests
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
jobs:
tests:
tests_x86_64:
strategy:
fail-fast: false
matrix:
@ -17,10 +17,30 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- uses: ./.github/actions/setup/
with:
python-version: ${{ matrix.python-version }}
- name: test
run: |
python -m pytest
tests_arm64:
strategy:
fail-fast: false
matrix:
python-version: [
#"3.9",
"3.10",
#"3.11"
]
os: [macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-macos-arm64/
with:
python-version: ${{ matrix.python-version }}
- name: test
run: |
python -m pytest