File tree Expand file tree Collapse file tree 2 files changed +50
-6
lines changed Expand file tree Collapse file tree 2 files changed +50
-6
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # Licensed to the Apache Software Foundation (ASF) under one or more
3+ # contributor license agreements. See the NOTICE file distributed with
4+ # this work for additional information regarding copyright ownership.
5+ # The ASF licenses this file to You under the Apache License, Version 2.0
6+ # (the "License"); you may not use this file except in compliance with
7+ # the License. You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+ #
17+
18+ # This is a basic workflow to help you get started with Actions
19+
20+ name : conda
21+
22+ # Controls when the action will run. Triggers the workflow on push or pull request
23+ # events but only for the master branch
24+ on :
25+ push :
26+ pull_request :
27+
28+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
29+ jobs :
30+ build-ubuntu-conda :
31+ runs-on : ubuntu-latest
32+
33+ steps :
34+ - uses : actions/checkout@v1
35+ - name : install-conda-build
36+ run : conda install conda-build
37+ - name : conda-config
38+ run : conda config --add channels conda-forge && conda config --add channels nusdbsystem
39+ - name : build-singa-conda
40+ run : conda build tool/conda/singa
Original file line number Diff line number Diff line change 1616# limitations under the License.
1717#
1818
19+ import sys
1920import unittest
20- # import xmlrunner
2121
22- loader = unittest .TestLoader ()
23- tests = loader .discover ('.' )
24- testRunner = unittest .runner .TextTestRunner ()
25- # testRunner = xmlrunner.XMLTestRunner(output='.')
26- testRunner .run (tests )
22+ def main ():
23+ loader = unittest .TestLoader ()
24+ tests = loader .discover ('.' )
25+ testRunner = unittest .runner .TextTestRunner ()
26+ ret = not testRunner .run (tests ).wasSuccessful ()
27+ sys .exit (ret )
28+
29+ if __name__ == "__main__" :
30+ main ()
You can’t perform that action at this time.
0 commit comments