Skip to content

Commit d0f8905

Browse files
authored
nightly binary check (#2767)
1 parent 3193748 commit d0f8905

File tree

1 file changed

+29
-16
lines changed

1 file changed

+29
-16
lines changed

.github/workflows/regression_tests_gpu_binaries.yml

+29-16
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ name: Run Regression Tests for GPU nightly binaries
22

33
on:
44
# run every day at 6:15am
5-
workflow_dispatch:
5+
schedule:
6+
- cron: '15 6 * * *'
67

78
concurrency:
89
group: ci-cpu-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }}
910
cancel-in-progress: true
1011

1112
jobs:
1213
regression-gpu-nightly-binaries:
13-
# creates workflows for OS: ubuntu, macOS
14+
# creates workflows for 3 python versions on self hosted
1415
runs-on: [self-hosted, regression-test-gpu]
1516
strategy:
1617
fail-fast: false
@@ -25,30 +26,42 @@ jobs:
2526
sudo rm -rf ./* || true
2627
sudo rm -rf ./.??* || true
2728
ls -la ./
28-
- name: Setup Java 17
29-
uses: actions/setup-java@v3
30-
with:
31-
distribution: 'zulu'
32-
java-version: '17'
3329
- name: Checkout TorchServe
3430
uses: actions/checkout@v3
3531
- uses: conda-incubator/setup-miniconda@v2
3632
with:
3733
miniconda-version: "latest"
38-
- name: Setup Conda
39-
uses: s-weigand/setup-conda@v1
40-
with:
4134
python-version: ${{ matrix.python-version }}
42-
- name: Setup Python ${{ matrix.python_version }}
43-
uses: actions/setup-python@v3
35+
- name: Setup Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v4
4437
with:
4538
python-version: ${{ matrix.python-version }}
4639
architecture: x64
40+
- name: Setup Conda
41+
uses: s-weigand/setup-conda@v1
42+
with:
43+
update-conda: true
44+
python-version: ${{ matrix.python-version }}
45+
conda-channels: anaconda, conda-forge
4746
- run: conda --version
48-
- run: python --version
47+
- name: Setup Java 17
48+
uses: actions/setup-java@v3
49+
with:
50+
distribution: 'zulu'
51+
java-version: '17'
4952
- name: Install dependencies
50-
run: |
51-
python ts_scripts/install_dependencies.py --environment=dev --cuda=cu118
53+
shell: bash -el {0}
54+
run: |
55+
echo "=====CHECK ENV AND PYTHON VERSION===="
56+
/home/ubuntu/actions-runner/_work/serve/serve/3/condabin/conda info --envs
57+
python --version
58+
echo "=====RUN INSTALL DEPENDENCIES===="
59+
python ts_scripts/install_dependencies.py --environment=dev --cuda=cu121
5260
- name: Torchserve Regression Tests
61+
shell: bash -el {0}
5362
run: |
54-
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly
63+
echo "=====CHECK ENV AND PYTHON VERSION===="
64+
/home/ubuntu/actions-runner/_work/serve/serve/3/condabin/conda info --envs
65+
python --version
66+
echo "=====RUN REGRESSION TESTS===="
67+
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly

0 commit comments

Comments
 (0)