Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 994 Bytes

README.md

File metadata and controls

43 lines (31 loc) · 994 Bytes

Local Testing Demo

Setup

  1. Fork this repo and clone it locally

  2. Create conda env:

    conda env create -f environment.yml
    conda activate snowpark-local-test-ff
    
  3. Set your account credentials:

    # Linux/MacOS
    export SNOWSQL_ACCOUNT=<replace with your account identifer>
    export SNOWSQL_USER=<replace with your username>
    export SNOWSQL_ROLE=<replace with your role>
    export SNOWSQL_PWD=<replace with your password>
    export SNOWSQL_DATABASE=<replace with your database>
    export SNOWSQL_SCHEMA=<replace with your schema>
    export SNOWSQL_WAREHOUSE=<replace with your warehouse>

Run demo

Run tests with local testing

pytest --snowflake-session local

Run tests with a live connnection

pytest

Showcase GitHub Actions

  1. Open a pull request on your fork of the repo (not the upstream)
  2. Go to your repository on GitHub.com and click "Actions" to see the actions execution