From 88d6b75d18d82b5b6df0bc6260e67d0abd23480b Mon Sep 17 00:00:00 2001 From: Sam Ansmink Date: Thu, 23 May 2024 17:42:51 +0200 Subject: [PATCH] run generated tests in CI --- .github/workflows/GeneratedTests.yml | 53 ++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/GeneratedTests.yml diff --git a/.github/workflows/GeneratedTests.yml b/.github/workflows/GeneratedTests.yml new file mode 100644 index 0000000..e4dfbad --- /dev/null +++ b/.github/workflows/GeneratedTests.yml @@ -0,0 +1,53 @@ +# +# This workflow calls the main distribution pipeline from DuckDB to build, test and (optionally) release the extension +# +name: GeneratedTests +on: + push: + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }} + cancel-in-progress: true + +jobs: + generated-tests-linux: + name: Generated Tests (Linux) + runs-on: ubuntu-latest + env: + GEN: ninja + VCPKG_TOOLCHAIN_PATH: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: 'true' + + - name: Install + shell: bash + run: sudo apt-get update -y -qq && sudo apt-get install -y -qq ninja-build + + - name: Setup Ccache + uses: hendrikmuhs/ccache-action@main + with: + key: ${{ github.job }} + + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Setup vcpkg + uses: lukka/run-vcpkg@v11.1 + with: + vcpkgGitCommitId: a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6 + + - name: Build + shell: bash + run: make generate-data + + - name: Test + shell: bash + run: | + make test \ No newline at end of file