@@ -2,15 +2,16 @@ name: Run Regression Tests for GPU nightly binaries
2
2
3
3
on :
4
4
# run every day at 6:15am
5
- workflow_dispatch :
5
+ schedule :
6
+ - cron : ' 15 6 * * *'
6
7
7
8
concurrency :
8
9
group : ci-cpu-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }}
9
10
cancel-in-progress : true
10
11
11
12
jobs :
12
13
regression-gpu-nightly-binaries :
13
- # creates workflows for OS: ubuntu, macOS
14
+ # creates workflows for 3 python versions on self hosted
14
15
runs-on : [self-hosted, regression-test-gpu]
15
16
strategy :
16
17
fail-fast : false
@@ -25,30 +26,42 @@ jobs:
25
26
sudo rm -rf ./* || true
26
27
sudo rm -rf ./.??* || true
27
28
ls -la ./
28
- - name : Setup Java 17
29
- uses : actions/setup-java@v3
30
- with :
31
- distribution : ' zulu'
32
- java-version : ' 17'
33
29
- name : Checkout TorchServe
34
30
uses : actions/checkout@v3
35
31
- uses : conda-incubator/setup-miniconda@v2
36
32
with :
37
33
miniconda-version : " latest"
38
- - name : Setup Conda
39
- uses : s-weigand/setup-conda@v1
40
- with :
41
34
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
44
37
with :
45
38
python-version : ${{ matrix.python-version }}
46
39
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
47
46
- 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'
49
52
- 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
52
60
- name : Torchserve Regression Tests
61
+ shell : bash -el {0}
53
62
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