@@ -3,7 +3,7 @@ name: Run Regression Tests for CPU nightly binaries
3
3
on :
4
4
# run every day at 6:15am
5
5
schedule :
6
- - cron : ' 15 6 * * *'
6
+ - cron : ' 15 6 * * *'
7
7
8
8
concurrency :
9
9
group : ci-cpu-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }}
@@ -31,24 +31,39 @@ jobs:
31
31
with :
32
32
submodules : recursive
33
33
- name : Setup conda with Python ${{ matrix.python-version }}
34
+ if : matrix.os == 'macos-14'
35
+ uses : conda-incubator/setup-miniconda@v3
36
+ with :
37
+ auto-update-conda : true
38
+ channels : anaconda, conda-forge
39
+ python-version : ${{ matrix.python-version }}
40
+ - name : Setup conda with Python ${{ matrix.python-version }}
41
+ if : matrix.os != 'macos-14'
34
42
uses : s-weigand/setup-conda@v1
35
43
with :
36
44
update-conda : true
37
45
python-version : ${{ matrix.python-version }}
38
46
conda-channels : anaconda, conda-forge
39
- - run : conda --version
40
- - run : python --version
41
47
- name : Setup Java 17
42
48
uses : actions/setup-java@v3
43
49
with :
44
50
distribution : ' zulu'
45
51
java-version : ' 17'
46
52
- name : Checkout TorchServe
47
53
uses : actions/checkout@v3
54
+ - name : Run install dependencies and regression test
55
+ if : matrix.os == 'macos-14'
56
+ shell : bash -el {0}
57
+ run : |
58
+ conda info
59
+ python ts_scripts/install_dependencies.py --environment=dev
60
+ python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly
48
61
- name : Install dependencies
62
+ if : matrix.os != 'macos-14'
49
63
run : |
50
64
python ts_scripts/install_dependencies.py --environment=dev
51
65
- name : Validate Torchserve CPU Regression
66
+ if : matrix.os != 'macos-14'
52
67
run : |
53
68
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly
54
69
0 commit comments