Skip to content

chore: add CI workflows and pre-commit config - #5

Merged
pomykalakyle merged 1 commit into
mainfrom
chore/add-ci-workflows
Apr 23, 2026
Merged

chore: add CI workflows and pre-commit config#5
pomykalakyle merged 1 commit into
mainfrom
chore/add-ci-workflows

Conversation

@pomykalakyle

Copy link
Copy Markdown
Collaborator

Summary

  • Add GitHub Actions workflows: build.yml (lint, unit tests, build on push/PR) and release.yml (tag-driven PyPI publish + GitHub Release).
  • Add .pre-commit-config.yaml modeled on the dbt-adapters style: black, flake8, mypy, plus the standard pre-commit hooks. Wires into the existing hatch run code-quality script.
  • Fix compatibility issues surfaced by enabling lint and tests:
    • Inline # type: ignore on SparkCredentials-inherited attributes in connections.py (matches the pattern used across dbt-adapters).
    • Hardcode SCHEMA_NOT_FOUND_MESSAGES in tests/unit/test_adapter.py since it was removed from the dbt-spark PyPI release.
    • Remove test_unknown_error_is_raised — the behavior it asserted is no longer guaranteed by upstream dbt-spark, which now swallows all DbtRuntimeErrors into [].
    • Apply black formatting to tests/functional/adapter/test_basic.py.

Test plan

  • hatch run code-quality passes locally
  • hatch run unit-tests passes locally (20/20)
  • CI build workflow runs green on this PR
  • Before first release: PyPI trusted publishers configured, and release / release/test GitHub environments created under repo settings

Add GitHub Actions build and release workflows, plus a pre-commit
configuration matching the dbt-adapters style (black, flake8, mypy).
Fix compatibility issues surfaced by enabling lint and tests:

- Inline type: ignore on SparkCredentials-inherited attributes
- Hardcode SCHEMA_NOT_FOUND_MESSAGES in the test module (removed from
  dbt-spark PyPI release)
- Remove test_unknown_error_is_raised (behavior no longer guaranteed
  by upstream dbt-spark)
- Apply black formatting to tests/functional/adapter/test_basic.py
@pomykalakyle
pomykalakyle merged commit 3ffafbb into main Apr 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant