-
Notifications
You must be signed in to change notification settings - Fork 233
48 lines (43 loc) · 1.23 KB
/
dev-pytest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: dev-pytest
on:
push:
branches:
- dev
- "feature/test_demo"
pull_request:
types: [opened, reopened]
workflow_dispatch:
jobs:
build:
env:
SNOWFLAKE_PASSWORD: ${{ secrets.SCHEMACHANGE_SNOWFLAKE_PASSWORD }}
SNOWFLAKE_USER: ${{ secrets.SCHEMACHANGE_SNOWFLAKE_USER }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SCHEMACHANGE_SNOWFLAKE_ACCOUNT }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Update pip
run: |
python -m pip install --upgrade pip
- name: Install dependencies
run: |
python -m pip install -e .[dev]
- name: Test with pytest
run: |
pytest
- name: Install SnowSQL
run: echo "installing SnowSQL"
- name: Setup Citibike Demo
run: echo SETUP
- name: Test Citibike Demo
run: |
schemachange --config-folder ./demo/citibike
schemachange --config-folder ./demo/citibike_jinja
- name: Teardown Citibike Demo
run: echo "Cleaning up Citibike Demo"