@@ -11,9 +11,9 @@ name: Test of package installation & execution
1111 - cron : " 0 10 1 * *" # 3AM PST once a month
1212
1313env :
14- PYTHONVERSION_MIN : 3.7
15- PYTHONVERSION_MAX : 3.12
16- PYTHONVERSION_STD : 3.9
14+ PYTHONVERSION_MIN : " 3.9 "
15+ PYTHONVERSION_MAX : " 3.12"
16+ PYTHONVERSION_STD : " 3.11 "
1717 NUMPY : numpy
1818 INSTALLR : 0 # TODO: temp
1919 INSTALLC : 1
@@ -442,7 +442,7 @@ jobs:
442442 install-pytorch : [true]
443443 include :
444444 - os-base : ubuntu
445- python-version : 3.7
445+ python-version : min
446446 install-method : conda
447447 test-flags1 : long
448448 test-flags2 : empty
@@ -452,7 +452,7 @@ jobs:
452452 install-sbml : false
453453 install-pytorch : false
454454 - os-base : ubuntu
455- python-version : 3.9
455+ python-version : std
456456 install-method : conda
457457 test-flags1 : long-remote-service
458458 test-flags2 : examples-sbml
@@ -462,7 +462,7 @@ jobs:
462462 install-sbml : true
463463 install-pytorch : true
464464 - os-base : ubuntu
465- python-version : " 3.10 "
465+ python-version : max
466466 install-method : conda
467467 test-flags1 : long
468468 test-flags2 : empty
@@ -472,26 +472,26 @@ jobs:
472472 install-mpi : false
473473 install-sbml : false
474474 install-pytorch : true
475- - os-base : ubuntu
476- python-version : " 3.11"
477- install-method : conda
478- test-flags1 : long
479- test-flags2 : empty
480- install-c : true
481- install-r : true
482- install-mpi : false
483- install-sbml : false
484- install-pytorch : true
485- - os-base : macos
486- python-version : 3.8
487- install-method : conda
488- test-flags1 : examples-rpc-lesson3
489- test-flags2 : tools
490- install-c : true
491- install-r : true
492- install-mpi : false
493- install-sbml : false
494- install-pytorch : true
475+ # - os-base: ubuntu
476+ # python-version: "3.11"
477+ # install-method: conda
478+ # test-flags1: long
479+ # test-flags2: empty
480+ # install-c: true
481+ # install-r: true
482+ # install-mpi: false
483+ # install-sbml: false
484+ # install-pytorch: true
485+ # - os-base: macos
486+ # python-version: 3.8
487+ # install-method: conda
488+ # test-flags1: examples-rpc-lesson3
489+ # test-flags2: tools
490+ # install-c: true
491+ # install-r: true
492+ # install-mpi: false
493+ # install-sbml: false
494+ # install-pytorch: true
495495 fail-fast : false
496496 defaults :
497497 run :
@@ -621,9 +621,22 @@ jobs:
621621 BRANCH : gh-pages
622622 FOLDER : docs/build/html/
623623
624+ all_tests_passed :
625+ runs-on : ubuntu-latest
626+ name : All tests passed
627+ needs : [test_pip, test_conda, test_rmq_pip, test_rmq_conda, test_stripped, docs]
628+ if : always()
629+ steps :
630+ - name : All tests ok
631+ if : ${{ !(contains(needs.*.result, 'failure')) }}
632+ run : exit 0
633+ - name : Some tests failed
634+ if : ${{ contains(needs.*.result, 'failure') }}
635+ run : exit 1
636+
624637 build_wheels :
625638 name : Build wheels on ${{ matrix.os }}
626- needs : [test_pip, test_conda, test_rmq_pip, test_rmq_conda, test_stripped, docs ]
639+ needs : [all_tests_passed ]
627640 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
628641 runs-on : ${{ matrix.os }}
629642 strategy :
@@ -683,7 +696,7 @@ jobs:
683696
684697 build_sdist :
685698 name : Build source distribution
686- needs : [test_pip, test_conda, test_rmq_pip, test_rmq_conda, test_stripped, docs ]
699+ needs : [all_tests_passed ]
687700 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
688701 runs-on : ubuntu-latest
689702 steps :
@@ -699,7 +712,7 @@ jobs:
699712 - name : Set up Python
700713 uses : actions/setup-python@v5
701714 with :
702- python-version : std
715+ python-version : ${{ env.PYTHONVERSION_STD }}
703716 - name : Install build utilities
704717 run : |
705718 python -m pip install build
@@ -756,7 +769,7 @@ jobs:
756769
757770 docker :
758771 name : Build and Publish Docker images
759- needs : [test_pip, test_conda, test_rmq_pip, test_rmq_conda, test_stripped, docs ]
772+ needs : [all_tests_passed ]
760773 if : (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || github.event.schedule == '0 10 1 * *'
761774 runs-on : ubuntu-latest
762775 steps :
@@ -770,7 +783,7 @@ jobs:
770783 - name : Set up Python
771784 uses : actions/setup-python@v5
772785 with :
773- python-version : std
786+ python-version : ${{ env.PYTHONVERSION_STD }}
774787 - name : Login to DockerHub
775788 uses : docker/login-action@v1
776789 with :
@@ -783,7 +796,7 @@ jobs:
783796
784797 schema :
785798 name : Update the schema used by the model submission form
786- needs : [test_pip, test_conda, test_rmq_pip, test_rmq_conda, test_stripped, docs ]
799+ needs : [all_tests_passed ]
787800 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
788801 runs-on : ubuntu-latest
789802 steps :
@@ -797,7 +810,7 @@ jobs:
797810 - name : Set up Python
798811 uses : actions/setup-python@v5
799812 with :
800- python-version : std
813+ python-version : ${{ env.PYTHONVERSION_STD }}
801814 - name : Install dependencies
802815 run : |
803816 python -m pip install PyGithub
0 commit comments