diff --git a/.github/workflows/automated-dev-tests.yml b/.github/workflows/automated-dev-tests.yml index 8d0d42b673..ea23cb04e2 100644 --- a/.github/workflows/automated-dev-tests.yml +++ b/.github/workflows/automated-dev-tests.yml @@ -25,7 +25,7 @@ env: # os: [macOS-10.14, ubuntu-18.04] jobs: - regression-test: + regression-tests-release: runs-on: ubuntu-20.04 steps: - name: Checkout @@ -79,7 +79,7 @@ jobs: uses: actions/upload-artifact@v2 if: failure() with: - name: test-results + name: regression-tests-release path: | ${{runner.workspace}}/build/reg_tests/modules ${{runner.workspace}}/build/reg_tests/glue-codes/openfast @@ -90,6 +90,64 @@ jobs: !${{runner.workspace}}/build/reg_tests/glue-codes/openfast/UAE_VI !${{runner.workspace}}/build/reg_tests/glue-codes/openfast/WP_Baseline + regression-tests-debug: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@main + with: + submodules: recursive + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.7' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install numpy Bokeh==1.4 + + - name: Setup Workspace + run: cmake -E make_directory ${{runner.workspace}}/build + - name: Configure Build + working-directory: ${{runner.workspace}}/build + run: | + cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/install \ + -DCMAKE_Fortran_COMPILER:STRING=${{env.FORTRAN_COMPILER}} \ + -DCMAKE_BUILD_TYPE:STRING=Debug \ + -DBUILD_TESTING:BOOL=ON \ + -DCTEST_PLOT_ERRORS:BOOL=ON \ + ${GITHUB_WORKSPACE} + + - name: Build OpenFAST + working-directory: ${{runner.workspace}}/build + run: | + cmake --build . --target aerodyn_driver -- -j ${{env.NUM_PROCS}} + cmake --build . --target beamdyn_driver -- -j ${{env.NUM_PROCS}} + cmake --build . --target hydrodyn_driver -- -j ${{env.NUM_PROCS}} + + - name: Run AeroDyn tests + uses: ./.github/actions/tests-module-aerodyn + with: + test-target: regression + - name: Run BeamDyn tests + uses: ./.github/actions/tests-module-beamdyn + with: + test-target: regression + - name: Run HydroDyn tests + uses: ./.github/actions/tests-module-hydrodyn + - name: Run SubDyn tests + uses: ./.github/actions/tests-module-subdyn + + - name: Failing test artifacts + uses: actions/upload-artifact@v2 + if: failure() + with: + name: regression-tests-debug + path: | + ${{runner.workspace}}/build/reg_tests/modules + unit-test: runs-on: ubuntu-20.04 steps: diff --git a/cmake/OpenfastFortranOptions.cmake b/cmake/OpenfastFortranOptions.cmake index 4822218a72..70126e17ef 100644 --- a/cmake/OpenfastFortranOptions.cmake +++ b/cmake/OpenfastFortranOptions.cmake @@ -120,7 +120,7 @@ macro(set_fast_gfortran) # debug flags if(CMAKE_BUILD_TYPE MATCHES Debug) - set( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -fcheck=all,no-array-temps -pedantic -fbacktrace " ) + set( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -fcheck=all,no-array-temps -pedantic -fbacktrace -finit-real=inf -finit-integer=9999." ) endif() if(CYGWIN)