Add Capture::Tiny DateTime modules to code_coverage CI workflow #184
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: C/C++ CI | |
on: [push, pull_request] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { | |
name: "MacOS Latest, Clang", | |
os: macos-latest, | |
test_target: test, | |
cc: "clang", cxx: "clang++" | |
} | |
- { | |
name: "Ubuntu Latest, GCC", | |
os: ubuntu-latest, | |
test_target: test, | |
cc: "gcc", cxx: "g++" | |
} | |
- { | |
name: "Windows Latest, MSVC", | |
os: windows-latest, | |
test_target: RUN_TESTS, | |
cc: "cl", cxx: "cl", | |
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat" | |
} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
persist-credentials: false | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' # 3.x grabs latest minor version of python3 | |
- name: Install Python dependencies | |
run: python -m pip install --upgrade pip setuptools wheel numpy tox pytest pybind11 | |
- name: Configure | |
run: cd build && cmake .. | |
- name: Build C++ unit tests | |
run: cmake --build build --config Release | |
- name: Run C++ tests | |
run: cmake --build build --config Release --target ${{ matrix.config.test_target }} | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' # 3.x grabs latest minor version of python3 | |
- name: Build and run Python tests | |
run: python -m tox |