Rework for streams; Rename EXTERNAL_VOLUME object type as VOLUME; Add… #208
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
name: Getting Started | |
on: | |
push: | |
paths: | |
- "**.py" | |
- "**.yml" | |
- "**.yaml" | |
workflow_dispatch: | |
jobs: | |
getting_started: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- env-prefix: PY38_LINUX | |
os: ubuntu-latest | |
python-version: 3.8 | |
- env-prefix: PY312_LINUX | |
os: ubuntu-latest | |
python-version: 3.12 | |
- env-prefix: PY312_WINDOWS | |
os: windows-latest | |
python-version: 3.12 | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
env: | |
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }} | |
SNOWFLAKE_USER: snowddl | |
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }} | |
SNOWFLAKE_ENV_PREFIX: ${{ matrix.env-prefix }} | |
steps: | |
- name: Enable longpaths | |
run: git config --global core.longpaths true | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install | |
run: pip install -e . | |
- name: "Cleanup" | |
run: snowddl -c sample01_01 --apply-unsafe destroy | |
- name: "Apply sample01_01, run 1" | |
run: snowddl -c sample01_01 --apply-unsafe apply | |
- name: "Apply sample01_01, run 2" | |
run: snowddl -c sample01_01 --apply-unsafe apply | |
- name: "Apply sample01_02, run 1" | |
run: snowddl -c sample01_02 --apply-unsafe apply | |
- name: "Apply sample01_02, run 2" | |
run: snowddl -c sample01_02 --apply-unsafe apply | |
- name: "Apply sample02_01" | |
run: snowddl -c sample02_01 --apply-unsafe --apply-masking-policy --apply-row-access-policy apply | |
- name: "Apply singledb" | |
run: snowddl-singledb -c sample02_01 --config-db=TEST_DB --target-db=ANOTHER_DB --apply-unsafe --apply-masking-policy --apply-row-access-policy apply |