diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 2f659f01da..924e3891d0 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -43,64 +43,98 @@ jobs: ./build_raven - name: Test RAVEN + if: always() run: | ../raven/run_tests --library-report ../raven/run_tests -j4 --raven - name: Test Plugins + continue-on-error: true run: | ../raven/run_tests -j4 --plugins - # Test-RAVEN-Macos: - # runs-on: macos-latest - # # runs-on: macos-14 - # steps: - # - uses: conda-incubator/setup-miniconda@v3 - # with: - # miniconda-version: "latest" - # channels: conda-forge, defaults - # activate-environment: raven_libraries - # use-only-tar-bz2: False # IMPORTANT: This needs to be set to True for caching to work properly! - # auto-update-conda: true - # auto-activate-base: true - # - run: echo " The job was automatically triggered by a ${{ github.event_name }} event." - # - run: echo " This job is now running on a ${{ runner.os }} server" - # - run: echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - # - name: Check out repository code - # uses: actions/checkout@v3 - # - run: pwd - # - run: cd .. && rm -Rf raven && git clone https://github.com/idaholab/raven.git - # - run: python3 ../raven/scripts/install_plugins.py -s ${{ github.workspace }} - # - run: WD=`(cd ../../.. && pwd)` && export RAVEN_LIBS_NAME="raven_libs_"`basename $WD` && ../raven/scripts/establish_conda_env.sh --install - # - run: cd ../raven && ./build_raven - # - run: ../raven/run_tests --library-report - # - run: ../raven/run_tests -j4 - - - # Test-RAVEN-Windows: - # runs-on: windows-latest - # # runs-on: windows-2019 - # continue-on-error: true - # strategy: - # fail-fast: false - # steps: - # - uses: conda-incubator/setup-miniconda@v3 - # with: - # miniconda-version: "latest" - # channels: conda-forge, defaults - # activate-environment: raven_libraries - # use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! - # auto-update-conda: true - # auto-activate-base: true - # - run: echo " The job was automatically triggered by a ${{ github.event_name }} event." - # - run: echo " This job is now running on a ${{ runner.os }} server" - # - run: echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - # - name: Check out repository code - # uses: actions/checkout@v3 - # - run: pwd - # - run: cd ..; if (Test-Path raven) {Remove-Item -Recurse -Force raven}; git clone https://github.com/idaholab/raven.git - # - run: python ../raven/scripts/install_plugins.py -s ${{ github.workspace }} - # - run: $Env:RAVEN_LIBS_NAME = "raven_libraries_"+(Get-Location).Path.Split("\")[-1]; bash ../raven/scripts/establish_conda_env.sh --install --conda-defs $HOME/Miniconda3/etc/profile.d/conda.sh - # - run: cd ../raven; bash ./build_raven - # - run: bash ../raven/run_tests --library-report - # - run: bash ../raven/run_tests -j4 + Test-RAVEN-macOS: + runs-on: macos-latest + steps: + - name: Setup Conda + uses: conda-incubator/setup-miniconda@v3 + with: + miniconda-version: "latest" + channels: conda-forge, defaults + activate-environment: raven_libraries + use-only-tar-bz2: False + auto-update-conda: true + auto-activate-base: true + + - name: Job Information + run: | + echo " The job was automatically triggered by a ${{ github.event_name }} event." + echo " This job is now running on a ${{ runner.os }} server" + echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + + - name: Fetch and Branch + uses: actions/checkout@v3 + + - name: Install Plugins + run: | + pwd + python3 ./scripts/install_plugins.py -a + + - name: Set Python Environment and Build Raven + run: | + ./scripts/establish_conda_env.sh --install + ./build_raven + + - name: Test RAVEN + if: always() + run: | + ../raven/run_tests --library-report + ../raven/run_tests -j4 --raven + + - name: Test Plugins + continue-on-error: true + run: | + ../raven/run_tests -j4 --plugins + + Test-RAVEN-Windows: + runs-on: windows-latest + steps: + - name: Setup Conda + uses: conda-incubator/setup-miniconda@v3 + with: + miniconda-version: "latest" + channels: conda-forge, defaults + activate-environment: raven_libraries + use-only-tar-bz2: true + auto-update-conda: true + auto-activate-base: true + + - name: Job Information + run: | + echo " The job was automatically triggered by a ${{ github.event_name }} event." + echo " This job is now running on a ${{ runner.os }} server" + echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + + - name: Fetch and Branch + uses: actions/checkout@v3 + + - name: Install Plugins + run: | + pwd + python ./scripts/install_plugins.py -a + + - name: Set Python Environment and Build Raven + run: | + bash ./scripts/establish_conda_env.sh --install --conda-defs $HOME/Miniconda3/etc/profile.d/conda.sh + bash ./build_raven + + - name: Test RAVEN + if: always() + run: | + bash ./run_tests --library-report + ../raven/run_tests -j4 --raven + + - name: Test Plugins + continue-on-error: true + run: | + ../raven/run_tests -j4 --plugins