Skip to content

Commit

Permalink
Update actions to run tests which aren't slow
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Dec 17, 2024
1 parent 45e9a02 commit 8cb83c6
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/Ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,8 @@ jobs:
path: ${{ env.BUILD_DIR }}/src/ffea_mb
if-no-files-found: error
retention-days: 5

- name: Run Tests (Slow Tests are Excluded)
if: ${{ env.CONFIG }} == "Release"
working-directory: ${{ env.BUILD_DIR }}
run: ctest -LE SLOW_TEST
2 changes: 2 additions & 0 deletions tests/physics/EI_cyl_160_fine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
if(Python3_EXECUTABLE)
add_test(NAME cyl_flexrig COMMAND ${PROJECT_BINARY_DIR}/src/ffea cyl_160_fine-EI.ffea)
set_tests_properties(cyl_flexrig PROPERTIES ENVIRONMENT OMP_NUM_THREADS=1)
set_tests_properties(cyl_flexrig PROPERTIES LABELS "SLOW_TEST")

add_test(NAME cyl_flexrig_check COMMAND ${Python3_EXECUTABLE} calcEI.py)

set_tests_properties(cyl_flexrig_check PROPERTIES
DEPENDS cyl_flexrig
ENVIRONMENT_MODIFICATION PYTHONPATH=unset: ENVIRONMENT_MODIFICATION PYTHONHOME=unset:)
set_tests_properties(cyl_flexrig_check PROPERTIES LABELS "SLOW_TEST")
endif()
2 changes: 2 additions & 0 deletions tests/physics/E_cyl_160_fine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
if(Python3_EXECUTABLE)
add_test(NAME cyl_youngs_mod COMMAND ${PROJECT_BINARY_DIR}/src/ffea cyl_160_fine-E.ffea)
set_tests_properties(cyl_youngs_mod PROPERTIES ENVIRONMENT OMP_NUM_THREADS=1)
set_tests_properties(cyl_youngs_mod PROPERTIES LABELS "SLOW_TEST")

add_test(NAME cyl_youngs_mod_check COMMAND ${Python3_EXECUTABLE} calcE.py)
set_tests_properties(cyl_youngs_mod_check PROPERTIES
DEPENDS cyl_youngs_mod
ENVIRONMENT_MODIFICATION PYTHONPATH=unset: ENVIRONMENT_MODIFICATION PYTHONHOME=unset:)
set_tests_properties(cyl_youngs_mod_check PROPERTIES LABELS "SLOW_TEST")
endif()
2 changes: 2 additions & 0 deletions tests/physics/sphere_63_120_mass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
if(Python3_EXECUTABLE)
add_test(NAME sphere_mass COMMAND ${PROJECT_BINARY_DIR}/src/ffea sphere_63_120_mass.ffea)
set_tests_properties(sphere_mass PROPERTIES ENVIRONMENT OMP_NUM_THREADS=1)
set_tests_properties(sphere_mass PROPERTIES LABELS "SLOW_TEST")
add_test(NAME sphere_mass_check COMMAND ${Python3_EXECUTABLE} testAverages.py)
set_tests_properties(sphere_mass_check PROPERTIES DEPENDS sphere_mass ENVIRONMENT_MODIFICATION PYTHONPATH=unset: ENVIRONMENT_MODIFICATION PYTHONHOME=unset:)
set_tests_properties(sphere_masscheck PROPERTIES LABELS "SLOW_TEST")
endif()
2 changes: 2 additions & 0 deletions tests/physics/sphere_63_120_nomass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
if(Python3_EXECUTABLE)
add_test(NAME sphere_nomass COMMAND ${PROJECT_BINARY_DIR}/src/ffea sphere_63_120_nomass.ffea)
set_tests_properties(sphere_nomass PROPERTIES ENVIRONMENT OMP_NUM_THREADS=1)
set_tests_properties(sphere_nomass PROPERTIES LABELS "SLOW_TEST")
add_test(NAME sphere_nomass_check COMMAND ${Python3_EXECUTABLE} testAverages.py)
set_tests_properties(sphere_nomass_check PROPERTIES DEPENDS sphere_nomass ENVIRONMENT_MODIFICATION PYTHONPATH=unset: ENVIRONMENT_MODIFICATION PYTHONHOME=unset:)
set_tests_properties(sphere_nomass_check PROPERTIES LABELS "SLOW_TEST")
endif()


Expand Down
4 changes: 4 additions & 0 deletions tests/physics/sphere_diffusion/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,19 @@ if(Python3_EXECUTABLE)

add_test(NAME sphere_diffusion_nomass COMMAND ${PROJECT_BINARY_DIR}/src/ffea sphere_nomass_norestart.ffea)
set_tests_properties(sphere_diffusion_nomass PROPERTIES ENVIRONMENT OMP_NUM_THREADS=1)
set_tests_properties(sphere_diffusion_nomass PROPERTIES LABELS "SLOW_TEST")
add_test(NAME sphere_diffusion_nomass_check COMMAND ${Python3_EXECUTABLE} diffusion_nomass.py sphere_nomass_norestart.ffea)
set_tests_properties(sphere_diffusion_nomass_check PROPERTIES
DEPENDS sphere_diffusion_nomass
ENVIRONMENT_MODIFICATION PYTHONPATH=unset: ENVIRONMENT_MODIFICATION PYTHONHOME=unset:)
set_tests_properties(sphere_diffusion_nomass_check PROPERTIES LABELS "SLOW_TEST")

add_test(NAME sphere_diffusion_mass COMMAND ${PROJECT_BINARY_DIR}/src/ffea sphere_mass_norestart.ffea)
set_tests_properties(sphere_diffusion_mass PROPERTIES ENVIRONMENT OMP_NUM_THREADS=1)
set_tests_properties(sphere_diffusion_mass PROPERTIES LABELS "SLOW_TEST")
add_test(NAME sphere_diffusion_mass_check COMMAND ${Python3_EXECUTABLE} diffusion_mass.py sphere_mass_norestart.ffea)
set_tests_properties(sphere_diffusion_mass_check PROPERTIES
DEPENDS sphere_diffusion_mass
ENVIRONMENT_MODIFICATION PYTHONPATH=unset: ENVIRONMENT_MODIFICATION PYTHONHOME=unset:)
set_tests_properties(sphere_diffusion_mass_check PROPERTIES LABELS "SLOW_TEST")
endif()
1 change: 1 addition & 0 deletions tests/rods/integration/connection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ file (COPY bend.ffea DESTINATION ${CONNECTIONPROPDIR})
file (COPY twist.ffea DESTINATION ${CONNECTIONPROPDIR})
add_subdirectory(sphere_structure)
add_test(NAME connection_propagation COMMAND ${PROJECT_BINARY_DIR}/src/ffea connection_propagation.ffeatest)
set_tests_properties(connection_propagation PROPERTIES LABELS "SLOW_TEST")

0 comments on commit 8cb83c6

Please sign in to comment.