Skip to content

Commit

Permalink
SNOW-1065172-gh-workflow-optimization: gh-cache-sum script
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mraba committed Mar 13, 2024
1 parent 4616f5c commit 9e3549d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
python -m pip install -U pip
python -m pip install -U hatch
python -m hatch env create default
python -m hatch env find
- name: Set PY
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
run: echo "PY=$(hatch run gh-cache-sum)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
Expand Down
5 changes: 3 additions & 2 deletions 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", "snowflake-connector-python<4.0.0"]
dependencies = ["SQLAlchemy", "snowflake-connector-python"]

[tool.hatch.version]
path = "src/snowflake/sqlalchemy/version.py"
Expand All @@ -53,7 +53,7 @@ development = [
"pytz",
"numpy",
]
pandas = ["snowflake-connector-python[pandas]<4.0.0"]
pandas = ["snowflake-connector-python[pandas]"]

[project.entry-points."sqlalchemy.dialects"]
snowflake = "snowflake.sqlalchemy:dialect"
Expand Down Expand Up @@ -89,6 +89,7 @@ check = "pre-commit run --all-files"
test-dialect = "pytest -ra -vvv --tb=short --cov snowflake.sqlalchemy --cov-append --junitxml ./junit.xml --ignore=tests/sqlalchemy_test_suite"
test-dialect-compatibility = "pytest -ra -vvv --tb=short --cov snowflake.sqlalchemy --cov-append --junitxml ./junit.xml tests/sqlalchemy_test_suite"
test-run_v20 = "pytest -ra -vvv --tb=short --cov snowflake.sqlalchemy --cov-append --junitxml ./junit.xml --ignore=tests/sqlalchemy_test_suite --run_v20_sqlalchemy"
gh-cache-sum = "python -VV | sha256sum | cut -d' ' -f1"

[tool.ruff]
line-length = 88
Expand Down

0 comments on commit 9e3549d

Please sign in to comment.