diff --git a/.github/actions/setup-macos-arm64/action.yml b/.github/actions/setup-macos-arm64/action.yml new file mode 100644 index 0000000..143dc3c --- /dev/null +++ b/.github/actions/setup-macos-arm64/action.yml @@ -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 . diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 422fe93..923a8fa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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