Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 61 additions & 72 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
name: Build and Test

on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
- prep-**
workflow_dispatch:
inputs:
logLevel:

default: warning
description: "Log level"
required: true
tags:
description: "Test scenario tags"
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
- prep-**
workflow_dispatch:
inputs:
logLevel:
default: warning
description: "Log level"
required: true
tags:
description: "Test scenario tags"
jobs:
lint:
name: Check linting
Expand All @@ -30,7 +29,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: "3.8"
- name: Upgrade and install tools
run: |
python -m pip install -U uv
Expand Down Expand Up @@ -60,7 +59,7 @@ jobs:
- name: Setup up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: "3.8"
- name: Upgrade and install tools
run: |
python -m pip install -U uv
Expand All @@ -75,22 +74,14 @@ jobs:

test-dialect:
name: Test dialect ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
needs: [ lint, build-install ]
needs: [lint, build-install]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-latest,
macos-13,
windows-latest,
]
os: [ubuntu-latest, macos-13, windows-latest]
python-version: ["3.8"]
cloud-provider: [
aws,
azure,
gcp,
]
cloud-provider: [aws, azure, gcp]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -109,8 +100,12 @@ jobs:
env:
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
run: |
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
.github/workflows/parameters/parameters_${{ matrix.cloud-provider }}.py.gpg > tests/parameters.py
printf "%s" "$PARAMETERS_SECRET" | gpg --quiet --batch --yes \
--decrypt \
--passphrase-fd 0 \
--pinentry-mode loopback \
--output tests/parameters.py \
.github/workflows/parameters/parameters_${{ matrix.cloud-provider }}.py.gpg
- name: Run test for AWS
run: hatch run test-dialect-aws
if: matrix.cloud-provider == 'aws'
Expand All @@ -124,22 +119,14 @@ jobs:

test-dialect-compatibility:
name: Test dialect compatibility ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
needs: [ lint, build-install ]
needs: [lint, build-install]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-latest,
macos-13,
windows-latest,
]
os: [ubuntu-latest, macos-13, windows-latest]
python-version: ["3.8"]
cloud-provider: [
aws,
azure,
gcp,
]
cloud-provider: [aws, azure, gcp]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -158,8 +145,12 @@ jobs:
env:
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
run: |
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
.github/workflows/parameters/parameters_${{ matrix.cloud-provider }}.py.gpg > tests/parameters.py
printf "%s" "$PARAMETERS_SECRET" | gpg --quiet --batch --yes \
--decrypt \
--passphrase-fd 0 \
--pinentry-mode loopback \
--output tests/parameters.py \
.github/workflows/parameters/parameters_${{ matrix.cloud-provider }}.py.gpg
- name: Run tests
run: hatch run test-dialect-compatibility
- uses: actions/upload-artifact@v4
Expand All @@ -170,22 +161,14 @@ jobs:

test-dialect-v14:
name: Test dialect v14 ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
needs: [ lint, build-install ]
needs: [lint, build-install]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-latest,
macos-13,
windows-latest,
]
os: [ubuntu-latest, macos-13, windows-latest]
python-version: ["3.8"]
cloud-provider: [
aws,
azure,
gcp,
]
cloud-provider: [aws, azure, gcp]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -199,8 +182,12 @@ jobs:
env:
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
run: |
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
.github/workflows/parameters/parameters_${{ matrix.cloud-provider }}.py.gpg > tests/parameters.py
printf "%s" "$PARAMETERS_SECRET" | gpg --quiet --batch --yes \
--decrypt \
--passphrase-fd 0 \
--pinentry-mode loopback \
--output tests/parameters.py \
.github/workflows/parameters/parameters_${{ matrix.cloud-provider }}.py.gpg
- name: Upgrade pip and install hatch
run: |
python -m pip install -U uv
Expand All @@ -224,17 +211,9 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [
ubuntu-latest,
macos-13,
windows-latest,
]
os: [ubuntu-latest, macos-13, windows-latest]
python-version: ["3.8"]
cloud-provider: [
aws,
azure,
gcp,
]
cloud-provider: [aws, azure, gcp]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -253,8 +232,12 @@ jobs:
env:
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
run: |
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
.github/workflows/parameters/parameters_${{ matrix.cloud-provider }}.py.gpg > tests/parameters.py
printf "%s" "$PARAMETERS_SECRET" | gpg --quiet --batch --yes \
--decrypt \
--passphrase-fd 0 \
--pinentry-mode loopback \
--output tests/parameters.py \
.github/workflows/parameters/parameters_${{ matrix.cloud-provider }}.py.gpg
- name: Run tests
run: hatch run sa14:test-dialect-compatibility
- uses: actions/upload-artifact@v4
Expand All @@ -266,7 +249,13 @@ jobs:
combine-coverage:
name: Combine coverage
if: ${{ success() || failure() }}
needs: [test-dialect, test-dialect-compatibility, test-dialect-v14, test-dialect-compatibility-v14]
needs:
[
test-dialect,
test-dialect-compatibility,
test-dialect-v14,
test-dialect-compatibility-v14,
]
runs-on: ubuntu-latest
steps:
- name: Set up Python
Expand Down
2 changes: 2 additions & 0 deletions DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Snowflake Documentation is available at:
Source code is also available at:
<https://github.com/snowflakedb/snowflake-sqlalchemy>
# Unreleased Notes
- v1.8.0
- Bump snowflake-connector-python to v4

# Release Notes
- v1.7.7(September 3, 2025)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = ["SQLAlchemy>=1.4.19", "snowflake-connector-python<4.0.0"]
dependencies = ["SQLAlchemy>=1.4.19", "snowflake-connector-python<5.0.0"]

[tool.hatch.version]
path = "src/snowflake/sqlalchemy/version.py"
Expand Down
2 changes: 1 addition & 1 deletion snyk/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SQLAlchemy>=1.4.19
snowflake-connector-python<4.0.0
snowflake-connector-python<5.0.0
Loading