Skip to content

wangcj05 is testing out SR2ML #31

wangcj05 is testing out SR2ML

wangcj05 is testing out SR2ML #31

name: GitHub SR2ML test
run-name: ${{ github.actor }} is testing out SR2ML
on: [push, pull_request]
jobs:
Test-SR2ML-Linux:
# runs-on: [self-hosted, ubuntu-latest]
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
steps:
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
channels: conda-forge, defaults
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 .. && rm -Rf raven && git clone https://github.com/idaholab/raven.git
- run: python3 ../raven/scripts/install_plugins.py -s ${{ github.workspace }}
# test with pip install pyDOE3
# - run: conda create -n test_lib python=3.10 pip
# - run: conda init bash && source ~/.bashrc && conda activate test_lib
# - run: pip install pyDOE3
- 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 --plugins --re=SR2ML
Test-SR2ML-Macos:

Check failure on line 33 in .github/workflows/github-actions.yml

View workflow run for this annotation

GitHub Actions / GitHub SR2ML test

Invalid workflow file

The workflow is not valid. .github/workflows/github-actions.yml (Line: 33, Col: 5): Unexpected value 'Test-SR2ML-Macos'
runs-on: macos-latest
steps:
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
channels: conda-forge, defaults
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 .. && 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 --plugins --re=SR2ML
Test-SR2ML-Windows:
runs-on: windows-latest
steps:
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
channels: conda-forge, defaults
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("\")[-4]; bash ../raven/scripts/establish_conda_env.sh --install --conda-defs $HOME/Miniconda3/etc/profile.d/conda.sh
- run: $Env:RAVEN_LIBS_NAME = "raven_libraries_"+(Get-Location).Path.Split("\")[-4]; bash ../raven/scripts/establish_conda_env.sh --install
- run: cd ../raven; bash ./build_raven
- run: bash ../raven/run_tests --library-report
- run: bash ../raven/run_tests -j4 --plugins --re=SR2ML