Skip to content

Commit

Permalink
Improve GH Actions (#599)
Browse files Browse the repository at this point in the history
* GH Actions bug fixes

Add full path to find and post test artifacts
Enable HydroDyn module tests

* Add single-precision compile step to tests
  • Loading branch information
rafmudaf authored Nov 20, 2020
1 parent e0aaee5 commit ee38ce8
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/actions/tests-module-hydrodyn/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ author: 'Rafael Mudafort https://github.com/rafmudaf'
runs:
using: "composite"
steps:
- run: ctest -VV -j7 -hd_
- run: ctest -VV -j7 -R hd_
working-directory: "/openfast/build"
shell: bash
50 changes: 42 additions & 8 deletions .github/workflows/automated-dev-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
uses: ./.github/actions/tests-module-aerodyn
- name: 'Run BeamDyn tests'
uses: ./.github/actions/tests-module-beamdyn
- name: 'Run HydroDyn tests'
uses: ./.github/actions/tests-module-hydrodyn
- name: 'Run InflowWind tests'
uses: ./.github/actions/tests-module-inflowwind
- name: 'Run OpenFAST tests'
Expand All @@ -71,11 +73,43 @@ jobs:
with:
name: test-results
path: |
build/reg_tests/modules
build/reg_tests/glue-codes/openfast
!build/reg_tests/glue-codes/openfast/5MW_Baseline
!build/reg_tests/glue-codes/openfast/AOC
!build/reg_tests/glue-codes/openfast/AWT27
!build/reg_tests/glue-codes/openfast/SWRT
!build/reg_tests/glue-codes/openfast/UAE_VI
!build/reg_tests/glue-codes/openfast/WP_Baseline
/openfast/build/reg_tests/modules
/openfast/build/reg_tests/glue-codes/openfast
!/openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline
!/openfast/build/reg_tests/glue-codes/openfast/AOC
!/openfast/build/reg_tests/glue-codes/openfast/AWT27
!/openfast/build/reg_tests/glue-codes/openfast/SWRT
!/openfast/build/reg_tests/glue-codes/openfast/UAE_VI
!/openfast/build/reg_tests/glue-codes/openfast/WP_Baseline
build-single-precision:
# Test if single precision compile completes.
# Do not run the test suite.

# Do not run if:
# - Branch name contains "docs/"
if: "!contains(github.ref, 'docs/')"

runs-on: ubuntu-latest
container:
image: rafmudaf/openfast-ubuntu:dev
steps:
- name: Checkout
uses: actions/checkout@main
with:
submodules: recursive
- name: Git Update
uses: ./.github/actions/git-update
with:
repository: $GITHUB_REPOSITORY
ref: $GITHUB_REF
- name: Configure CMake
uses: ./.github/actions/cmake-config
with:
build-type: Debug
additional-flags: -DDOUBLE_PRECISION=OFF
- name: Compile OpenFAST
uses: ./.github/actions/compile
with:
build-target: 'all'

0 comments on commit ee38ce8

Please sign in to comment.