refactor: split ak._do
into meta
and content
#1904
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: Header-only Tests | |
on: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: header-only-test-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: "Run Tests" | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Run CMake | |
run: | | |
cmake -B build -S header-only -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=bin -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON | |
cmake --build build/ | |
- name: Run tests | |
run: | | |
import os | |
import pathlib | |
import subprocess | |
for path in pathlib.Path("build/tests/bin").glob("test_*"): | |
if path.is_file(): | |
print(f"Running {path.name}", flush=True) | |
print("::group::Test output", flush=True) | |
subprocess.run([path], check=True) | |
print("::endgroup::", flush=True) | |
shell: python3 {0} |