forked from letsql/letsql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add worfklow for testing snowflake (letsql#233)
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} | ||
|