Skip to content
Open
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
116 changes: 58 additions & 58 deletions .github/workflows/ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,61 @@ name: Test tap-snowflake
on: [push]

jobs:
linting:

runs-on: ubuntu-latest
strategy:
matrix:
# Only lint using the primary version used for dev
python-version: ["3.13"]

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry==1.8.*
- name: Install dependencies
run: |
poetry install
- name: Run lint command from tox.ini
run: |
poetry run tox -e lint

pytest:

runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SF_USER: ${{secrets.SF_USER}}
SF_PASSWORD: ${{secrets.SF_PASSWORD}}
SF_ACCOUNT: ${{secrets.SF_ACCOUNT}}
SF_DATABASE: ${{secrets.SF_DATABASE}}
SF_WAREHOUSE: ${{secrets.SF_WAREHOUSE}}
SF_ROLE: ${{secrets.SF_ROLE}}
strategy:
fail-fast: false
max-parallel: 2
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry==1.8.*
- name: Install dependencies
run: |
poetry install
- name: Test with pytest
run: |
poetry run pytest --capture=no
# Linting and pytest jobs disabled - not needed for this fork
# linting:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# # Only lint using the primary version used for dev
# python-version: ["3.13"]
#
# steps:
# - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install Poetry
# run: |
# python -m pip install --upgrade pip
# pip install poetry==2.2.*
# - name: Install dependencies
# run: |
# poetry install
# - name: Run lint command from tox.ini
# run: |
# poetry run tox -e lint
#
# pytest:
#
# runs-on: ubuntu-latest
# env:
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# SF_USER: ${{secrets.SF_USER}}
# SF_PASSWORD: ${{secrets.SF_PASSWORD}}
# SF_ACCOUNT: ${{secrets.SF_ACCOUNT}}
# SF_DATABASE: ${{secrets.SF_DATABASE}}
# SF_WAREHOUSE: ${{secrets.SF_WAREHOUSE}}
# SF_ROLE: ${{secrets.SF_ROLE}}
# strategy:
# fail-fast: false
# max-parallel: 2
# matrix:
# python-version: ["3.10", "3.11", "3.12", "3.13"]
#
# steps:
# - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install Poetry
# run: |
# python -m pip install --upgrade pip
# pip install poetry==2.2.*
# - name: Install dependencies
# run: |
# poetry install
# - name: Test with pytest
# run: |
# poetry run pytest --capture=no
47 changes: 24 additions & 23 deletions .github/workflows/project_add.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
# Managed by Pulumi. Any edits to this file will be overwritten.
# Disabled - this workflow is for MeltanoLabs org, not needed for HGData fork

name: Add issues and PRs to MeltanoLabs Overview Project

on:
issues:
types:
- opened
- reopened
- transferred
pull_request:
types:
- opened
- reopened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
with:
project-url: https://github.com/orgs/MeltanoLabs/projects/3
github-token: ${{ secrets.MELTYBOT_PROJECT_ADD_PAT }}
# name: Add issues and PRs to MeltanoLabs Overview Project
#
# on:
# issues:
# types:
# - opened
# - reopened
# - transferred
# pull_request:
# types:
# - opened
# - reopened
#
# jobs:
# add-to-project:
# name: Add issue to project
# runs-on: ubuntu-latest
# if: ${{ github.actor != 'dependabot[bot]' }}
# steps:
# - uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
# with:
# project-url: https://github.com/orgs/MeltanoLabs/projects/3
# github-token: ${{ secrets.MELTYBOT_PROJECT_ADD_PAT }}
10 changes: 5 additions & 5 deletions .github/workflows/release_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
outputs:
version: ${{ steps.baipp.outputs.package_version }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@b5076c307dc91924a82ad150cdd1533b444d3310 # v2.12.0
- uses: hynek/build-and-inspect-python-package@efb823f52190ad02594531168b7a2d5790e66516 # v2.14.0
id: baipp

deploy:
Expand All @@ -26,17 +26,17 @@ jobs:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: Packages
path: dist
- name: Upload wheel to release
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # 2.9.0
uses: svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # 2.11.2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.whl
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Publish
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: check-json
- id: check-toml
Expand All @@ -9,13 +9,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.7
rev: v0.14.2
hooks:
- id: ruff
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.18.2
hooks:
- id: mypy
1 change: 1 addition & 0 deletions meltano.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: 1
send_anonymous_usage_stats: true
project_id: tap-snowflake
default_environment: dev
plugins:
extractors:
- name: tap-snowflake
Expand Down
Loading