mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Merge pull request #522 from jdegenstein/dev
Add automatic testing workflow for arm64 MacOS
This commit is contained in:
commit
e6b9ca6e66
2 changed files with 45 additions and 3 deletions
22
.github/actions/setup-macos-arm64/action.yml
vendored
Normal file
22
.github/actions/setup-macos-arm64/action.yml
vendored
Normal 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 .
|
||||
26
.github/workflows/test.yml
vendored
26
.github/workflows/test.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue