From 0dac389e66cd0e86b32538d050c74a3524580f80 Mon Sep 17 00:00:00 2001 From: Daniel Mesejo Date: Mon, 26 Aug 2024 11:03:06 +0200 Subject: [PATCH] chore: add worfklow for testing snowflake (#233) --- .github/workflows/ci-test-snowflake.yml | 52 +++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/ci-test-snowflake.yml diff --git a/.github/workflows/ci-test-snowflake.yml b/.github/workflows/ci-test-snowflake.yml new file mode 100644 index 00000000..38f0f04b --- /dev/null +++ b/.github/workflows/ci-test-snowflake.yml @@ -0,0 +1,52 @@ +name: ci-test-snowflake + +on: + workflow_dispatch: + +permissions: + contents: read + + +jobs: + linux: + runs-on: ubuntu-latest + strategy: + matrix: + target: ["x86_64"] + python-version: ["3.11"] + steps: + - uses: actions/checkout@v4 + - uses: extractions/setup-just@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: download test data + run: just download-data + + - name: Rust latest + run: rustup update + + - name: Install Poetry + uses: snok/install-poetry@v1 + + - name: Poetry install + run: poetry install --extras="examples" + working-directory: ${{ github.workspace }} + + - name: maturin develop + run: poetry run maturin develop --release + working-directory: ${{ github.workspace }} + + - name: start services + run: docker compose up --build --wait + + - name: poetry pytest + run: poetry run pytest --import-mode=importlib python/letsql/backends/snowflake -v + working-directory: ${{ github.workspace }} + env: + SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_GH_USER_PASSWORD }} + SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_GH_USER_NAME }} + SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_GH_WAREHOUSE }} + SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_GH_ROLE }} + SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_GH_ACCOUNT }} +