Skip to content

Commit

Permalink
copy instances for gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hlefebvr committed Oct 22, 2023
1 parent 9108901 commit 9e703e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
run: cmake --build ${{github.workspace}}/build

- name: Test
working-directory: ${{github.workspace}}/build
run: ./tests/${{ matrix.test }}
working-directory: ${{github.workspace}}/build/tests
run: ./${{ matrix.test }}
env:
MOSEKLM_LICENSE_FILE: ${{github.workspace}}/mosek/mosek.lic

Expand Down Expand Up @@ -124,8 +124,8 @@ jobs:
run: cmake --build ${{github.workspace}}/build

- name: Test
working-directory: ${{github.workspace}}/build
run: ./tests/${{ matrix.test }}
working-directory: ${{github.workspace}}/build/tests
run: ./${{ matrix.test }}

- name: Build coverage report
run: lcov --directory . --capture --output-file coverage.info
Expand Down Expand Up @@ -164,8 +164,8 @@ jobs:
run: cmake --build ${{github.workspace}}/build

- name: Test
working-directory: ${{github.workspace}}/build
run: ./tests/${{ matrix.test }}
working-directory: ${{github.workspace}}/build/tests
run: ./${{ matrix.test }}

- name: Build coverage report
run: lcov --directory . --capture --output-file coverage.info
Expand Down
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if (NOT ${Catch2_FOUND})
endif()

file(COPY ${CMAKE_SOURCE_DIR}/tests/data DESTINATION ${CMAKE_BINARY_DIR}/tests/)
file(COPY ${CMAKE_SOURCE_DIR}/tests/data DESTINATION ${CMAKE_BINARY_DIR}/) # Necessary for GitHub Actions

# Define tests
add_subdirectory(modeling)
Expand Down

0 comments on commit 9e703e1

Please sign in to comment.