Skip to content

Commit

Permalink
nightly binary check (#2767)
Browse files Browse the repository at this point in the history
  • Loading branch information
udaij12 authored Nov 3, 2023
1 parent 3193748 commit d0f8905
Showing 1 changed file with 29 additions and 16 deletions.
45 changes: 29 additions & 16 deletions .github/workflows/regression_tests_gpu_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ name: Run Regression Tests for GPU nightly binaries

on:
# run every day at 6:15am
workflow_dispatch:
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-gpu-nightly-binaries:
# creates workflows for OS: ubuntu, macOS
# creates workflows for 3 python versions on self hosted
runs-on: [self-hosted, regression-test-gpu]
strategy:
fail-fast: false
Expand All @@ -25,30 +26,42 @@ jobs:
sudo rm -rf ./* || true
sudo rm -rf ./.??* || true
ls -la ./
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Checkout TorchServe
uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
python-version: ${{ matrix.python-version }}
- name: Setup Python ${{ matrix.python_version }}
uses: actions/setup-python@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- run: conda --version
- run: python --version
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Install dependencies
run: |
python ts_scripts/install_dependencies.py --environment=dev --cuda=cu118
shell: bash -el {0}
run: |
echo "=====CHECK ENV AND PYTHON VERSION===="
/home/ubuntu/actions-runner/_work/serve/serve/3/condabin/conda info --envs
python --version
echo "=====RUN INSTALL DEPENDENCIES===="
python ts_scripts/install_dependencies.py --environment=dev --cuda=cu121
- name: Torchserve Regression Tests
shell: bash -el {0}
run: |
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly
echo "=====CHECK ENV AND PYTHON VERSION===="
/home/ubuntu/actions-runner/_work/serve/serve/3/condabin/conda info --envs
python --version
echo "=====RUN REGRESSION TESTS===="
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly

0 comments on commit d0f8905

Please sign in to comment.