From 7ecfaaf8ae1e7c2299c76ade6e44dedb5c4397e2 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Fri, 29 Mar 2024 17:18:41 -0400 Subject: [PATCH] ci(bigquery): run some bigquery unit tests against PRs (#8827) --- .github/workflows/ibis-backends.yml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.github/workflows/ibis-backends.yml b/.github/workflows/ibis-backends.yml index c444b32965b1..3cf14ec5c013 100644 --- a/.github/workflows/ibis-backends.yml +++ b/.github/workflows/ibis-backends.yml @@ -42,6 +42,50 @@ env: HYPOTHESIS_PROFILE: "ci" jobs: + test_bigquery_lite: + name: BigQuery ${{ matrix.os }} python-${{ matrix.python-version }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - windows-latest + python-version: + - "3.9" + - "3.11" + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: install poetry + run: pipx install 'poetry==1.8.2' + + - name: install python + uses: actions/setup-python@v5 + id: install_python + with: + python-version: ${{ matrix.python-version }} + cache: poetry + + - name: install ibis + run: poetry install --without dev --without docs --extras bigquery + + - uses: extractions/setup-just@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: run simple bigquery unit tests + run: just ci-check ibis/backends/bigquery/tests/unit + + - name: upload code coverage + if: success() + continue-on-error: true + uses: codecov/codecov-action@v4 + with: + flags: backend,bigquery,${{ runner.os }},python-${{ steps.install_python.outputs.python-version }} + token: ${{ secrets.CODECOV_TOKEN }} + test_backends: name: ${{ matrix.backend.title }} ${{ matrix.os }} python-${{ matrix.python-version }} runs-on: ${{ matrix.os }}