adding new ci for m1 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Regression Tests on CPU | |
on: | |
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: | |
regression-cpu: | |
# creates workflows for OS: ubuntu, macOS | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-14] | |
steps: | |
- name: Setup Python 3.8 | |
uses: actions/setup-python@v3 | |
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 test | |
run: | | |
python torchserve_sanity.py | |
- name: Torchserve Regression Tests | |
run: | | |
python test/regression_tests.py |