16
16
strategy :
17
17
fail-fast : false
18
18
matrix :
19
- os : [ubuntu-20.04, macOS -latest]
19
+ os : [ubuntu-20.04, macos -latest]
20
20
python-version : ["3.8", "3.9", "3.10"]
21
21
binaries : ["pypi", "conda"]
22
22
exclude :
@@ -31,38 +31,33 @@ 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
34
uses : conda-incubator/setup-miniconda@v3
36
35
with :
37
36
auto-update-conda : true
38
37
channels : anaconda, conda-forge
39
38
python-version : ${{ matrix.python-version }}
40
- - name : Setup conda with Python ${{ matrix.python-version }}
41
- if : matrix.os != 'macos-14'
42
- uses : s-weigand/setup-conda@v1
43
- with :
44
- update-conda : true
45
- python-version : ${{ matrix.python-version }}
46
- conda-channels : anaconda, conda-forge
47
39
- name : Setup Java 17
48
40
uses : actions/setup-java@v3
49
41
with :
50
42
distribution : ' zulu'
51
43
java-version : ' 17'
52
44
- name : Checkout TorchServe
53
45
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
61
46
- name : Install dependencies
62
- if : matrix.os != 'macos-14'
47
+ shell : bash -el {0}
63
48
run : |
49
+ echo "=====CHECK ENV AND PYTHON VERSION===="
50
+ conda info --envs
51
+ python --version
52
+ echo "=====RUN INSTALL DEPENDENCIES===="
64
53
python ts_scripts/install_dependencies.py --environment=dev
65
- - name : Validate Torchserve CPU Regression
66
- if : matrix.os != 'macos-14'
54
+ - name : Torchserve Regression Tests
55
+ shell : bash -el {0}
56
+ env :
57
+ TS_MAC_ARM64_CPU_ONLY : ${{ matrix.os == 'macos-latest' && 'True' || 'False' }}
67
58
run : |
59
+ echo "=====CHECK ENV AND PYTHON VERSION===="
60
+ conda info --envs
61
+ python --version
62
+ echo "=====RUN REGRESSION TESTS===="
68
63
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly
0 commit comments