Skip to content

adding m1 to normal tests and ci #4251

adding m1 to normal tests and ci

adding m1 to normal tests and ci #4251

Workflow file for this run

name: CI CPU
on:
workflow_dispatch:
push:
branches:
- M1_changes
pull_request:
branches:
- M1_changes
merge_group:
concurrency:
group: ci-cpu-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }}
cancel-in-progress: true
jobs:
ci-cpu:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macOS-latest, macos-14]
steps:
- name: Setup Python for M1
if: matrix.os == 'macos-14'
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup Python for all other OS
if: matrix.os != 'macos-14'
uses: actions/setup-python@v4
with:
python-version: 3.8
architecture: x64
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Checkout TorchServe
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
python ts_scripts/install_dependencies.py --environment=dev
- name: Torchserve Sanity
uses: nick-fields/retry@v2
with:
timeout_minutes: 60
max_attempts: 3
retry_on: error
command: |
python torchserve_sanity.py
# Any coverage.xml will be picked up by this step
# Just make sure each coverage.xml is in a different folder
# - name: Upload codecov
# if: matrix.os == 'ubuntu-20.04'
# run : |
# curl -Os https://uploader.codecov.io/latest/linux/codecov
# chmod +x codecov
# ./codecov