99 - main
1010
1111jobs :
12- # run_tests_linux:
13- # strategy:
14- # matrix:
15- # tf_version: ['2.9.0', '2.13.0']
16- # python_version: ['3.8', '3.9', '3.10']
17- # opset_version: ['18', '15']
18- # ort_version: ['1.16.3']
19- # onnx_version: ['1.15.0']
20-
21- # runs-on: ubuntu-latest
22-
23- # steps:
24- # - name: Set up Python (${{ matrix.python_version }})
25- # uses: actions/setup-python@v5
26- # with:
27- # python-version: ${{ matrix.python_version }}
28-
29- # - name: Checkout code
30- # uses: actions/checkout@v4
31-
32- # - name: Install dependencies (tf v${{ matrix.tf_version }})
33- # shell: bash
34- # run: |
35- # python -m pip install --upgrade pip
36- # pip install onnxconverter-common
37- # pip install onnx==${{ matrix.onnx_version }}
38- # pip install h5py==3.7.0
39- # pip install parameterized
40- # pip install timeout-decorator
41- # pip install coloredlogs flatbuffers
42- # pip install tensorflow==${{ matrix.tf_version }}
43- # pip install pytest pytest-cov pytest-runner
44- # pip install onnxruntime==${{ matrix.ort_version }}
45- # pip uninstall -y protobuf
46- # pip install "protobuf~=3.20"
47- # pip install -e .
48-
49- # echo "----- List all of depdencies:"
50- # pip freeze --all
51-
52- # - name: Run keras unit tests
53- # run: |
54- # set -x
55- # status=0
56- # python -c "import onnxruntime"
57- # python -c "import onnxconverter_common"
58- # pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml
59- # exit $status
60-
61- run_tests_windows :
12+ run_tests :
6213 strategy :
6314 matrix :
6415 tf_version : ['2.9.0', '2.13.0']
6516 python_version : ['3.8', '3.9', '3.10']
6617 opset_version : ['18', '15']
6718 ort_version : ['1.16.3']
6819 onnx_version : ['1.15.0']
20+ os : ['ubuntu-latest', 'windows-2022']
6921
70- runs-on : windows-2022
22+ runs-on : ${{ matrix.os }}
7123
7224 steps :
7325 - name : Set up Python (${{ matrix.python_version }})
7830 - name : Checkout code
7931 uses : actions/checkout@v4
8032
81- - name : Install dependencies (tf v${{ matrix.tf_version }})
33+ - name : Install dependencies (TF- v${{ matrix.tf_version }})
8234 shell : bash
8335 run : |
8436 python -m pip install --upgrade pip
@@ -98,22 +50,23 @@ jobs:
9850 echo "----- List all of depdencies:"
9951 pip freeze --all
10052
101- - name : Run keras unit tests
53+ - name : Run keras unit tests (${{ matrix.os }})
10254 run : |
10355 python -c "import onnxruntime"
10456 python -c "import onnxconverter_common"
10557 pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml
10658
107- run_tests_linux_TF_15 :
59+ run_tests_tf_15 :
10860 strategy :
10961 matrix :
11062 tf_version : ['1.15.0']
11163 python_version : ['3.7'] # Max version that supports tf 1.15
11264 opset_version : ['18', '15']
11365 ort_version : ['1.14.1'] # Max version that supports python 3.7
11466 onnx_version : ['1.14.1'] # Max version that supports python 3.7
67+ os : ['ubuntu-latest', 'windows-2022']
11568
116- runs-on : ubuntu-latest
69+ runs-on : ${{ matrix.os }}
11770
11871 steps :
11972 - name : Set up Python (${{ matrix.python_version }})
@@ -145,58 +98,46 @@ jobs:
14598 echo "----- List all of depdencies:"
14699 pip freeze --all
147100
148- - name : Run keras unit tests
101+ - name : Run keras unit tests (${{ matrix.os }})
149102 run : |
150- set -x
151- status=0
152103 python -c "import onnxruntime"
153104 python -c "import onnxconverter_common"
154105 pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml
155- exit $status
156-
157- run_tests_windows_TF_15 :
158- strategy :
159- matrix :
160- tf_version : ['1.15.0']
161- python_version : ['3.7'] # Max version that supports tf 1.15
162- opset_version : ['18', '15']
163- ort_version : ['1.14.1'] # Max version that supports python 3.7
164- onnx_version : ['1.14.1'] # Max version that supports python 3.7
165-
166- runs-on : windows-2022
167106
107+ publish-test-results :
108+ name : " Publish Tests Results to Github"
109+ needs : run_tests
110+ runs-on : ubuntu-latest
111+ permissions :
112+ checks : write
113+ pull-requests : write
114+ if : always()
168115 steps :
169- - name : Set up Python (${{ matrix.python_version }})
170- uses : actions/setup-python@v5
116+ - name : Download Artifacts
117+ uses : actions/download-artifact@v3
171118 with :
172- python-version : ${{ matrix.python_version }}
173-
174- - name : Checkout code
175- uses : actions/checkout@v4
119+ path : artifacts
176120
177- - name : Install dependencies (tf v${{ matrix.tf_version }})
178- shell : bash
179- run : |
180- python -m pip install --upgrade pip
181- pip install onnxconverter-common
182- pip install onnx==${{ matrix.onnx_version }}
183- pip uninstall -y protobuf
184- pip install "protobuf~=3.20"
185- pip install h5py==3.7.0
186- pip install parameterized
187- pip install timeout-decorator
188- pip install coloredlogs flatbuffers
189- pip install tensorflow==${{ matrix.tf_version }}
190- pip install pytest pytest-cov pytest-runner
191- pip install onnxruntime==${{ matrix.ort_version }}
192- pip install numpy==1.19.0
193- pip install -e .
121+ - name : Publish Test Results
122+ uses : EnricoMi/publish-unit-test-result-action@v2
123+ with :
124+ files : " artifacts/**/*.xml"
194125
195- echo "----- List all of depdencies:"
196- pip freeze --all
126+ publish-test-results-tf-15 :
127+ name : " Publish Tests Results(TF15) to Github"
128+ needs : run_tests_tf_15
129+ runs-on : ubuntu-latest
130+ permissions :
131+ checks : write
132+ pull-requests : write
133+ if : always()
134+ steps :
135+ - name : Download Artifacts
136+ uses : actions/download-artifact@v3
137+ with :
138+ path : artifacts
197139
198- - name : Run keras unit tests
199- run : |
200- python -c "import onnxruntime"
201- python -c "import onnxconverter_common"
202- pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml
140+ - name : Publish Test Results
141+ uses : EnricoMi/publish-unit-test-result-action@v2
142+ with :
143+ files : " artifacts/**/*.xml"
0 commit comments