TST: Add data driven tests based on xsref
parquet files using Catch2
#5
Workflow file for this run
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: Linux Tests | |
on: [ push, pull_request ] | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
env: | |
CCACHE_DIR: "${{ github.workspace }}/.ccache" | |
INSTALLDIR: "build-install" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
gcc_x86_64_linux: | |
name: GCC X86_64 Linux | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout xsref | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
repository: 'steppi/xsref' | |
path: 'xsref' | |
ref: 'xsref' | |
- name: Checkout Catch2 | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
repository: 'catchorg/Catch2' | |
path: 'Catch2' | |
ref: 'v3.8.0' | |
- name: Install Ubuntu dependencies | |
run: | | |
sudo apt update | |
sudo apt update | |
sudo apt install -y -V ca-certificates lsb-release wget | |
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | |
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | |
sudo apt install -y -V libarrow-dev # For C++ | |
sudo apt install -y -V libarrow-glib-dev # For GLib (C) | |
sudo apt install -y -V libarrow-dataset-dev # For Apache Arrow Dataset C++ | |
sudo apt install -y -V libparquet-dev # For Apache Parquet C++ | |
sudo apt install -y -V libparquet-glib-dev # For Apache Parquet GLib (C) | |
sudo apt install -y libzstd-dev ccache | |
- name: Install Catch2 | |
run: | | |
cd Catch2 | |
cmake -Bbuild -H. -DBUILD_TESTING=OFF | |
sudo cmake --build build/ --target install | |
- name: Configure and build | |
run: | | |
cmake . | |
make | |
- name: run tests | |
run: | | |
export XSREF_TABLES_PATH="xsref/tables" | |
ctest --output-on-failure |