Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
env: | |
CMAKE_VERSION: 3.16.2 | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macOS-latest] | |
# TODO test for more python versions | |
python-version: [3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Configure CMake for tests | |
shell: bash | |
working-directory: ${{runner.workspace}}/daylight | |
run: cmake -B build/test -S test -DCMAKE_BUILD_TYPE=$BUILD_TYPE | |
- name: Build | |
working-directory: ${{runner.workspace}}/daylight | |
shell: bash | |
run: cmake --build build/test --config $BUILD_TYPE | |
- name: Run Unit Tests | |
working-directory: ${{runner.workspace}}/daylight/build/test | |
shell: bash | |
run: ctest --output-on-failure -C $BUILD_TYPE |