Run Regression Tests for CPU nightly binaries #546
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 for CPU nightly binaries | |
on: | |
# run every day at 6:15am | |
schedule: | |
- cron: '15 6 * * *' | |
concurrency: | |
group: ci-cpu-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
regression-cpu-nightly-binaries: | |
# creates workflows for OS: ubuntu, macOS | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, macos-latest] | |
python-version: ["3.8", "3.9", "3.10"] | |
binaries: ["pypi", "conda"] | |
exclude: | |
- os: macos-latest | |
python-version: 3.8 | |
- os: macos-14 | |
python-version: 3.8 | |
- os: macos-14 | |
python-version: 3.9 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup conda with Python ${{ matrix.python-version }} | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
channels: anaconda, conda-forge | |
python-version: ${{ matrix.python-version }} | |
- name: Setup Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Checkout TorchServe | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
shell: bash -el {0} | |
run: | | |
echo "=====CHECK ENV AND PYTHON VERSION====" | |
conda info --envs | |
python --version | |
echo "=====RUN INSTALL DEPENDENCIES====" | |
python ts_scripts/install_dependencies.py --environment=dev | |
- name: Torchserve Regression Tests | |
shell: bash -el {0} | |
env: | |
TS_MAC_ARM64_CPU_ONLY: ${{ matrix.os == 'macos-latest' && 'True' || 'False' }} | |
run: | | |
echo "=====CHECK ENV AND PYTHON VERSION====" | |
conda info --envs | |
python --version | |
echo "=====RUN REGRESSION TESTS====" | |
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly |