fix: Honor batch_size_rows
when batching records (#340)
#662
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test target-snowflake | |
on: | |
push: | |
branches: [main] | |
paths: | |
- .github/workflows/test.yml | |
- target_snowflake/** | |
- tests/** | |
- poetry.lock | |
- pyproject.toml | |
- tox.ini | |
pull_request: | |
branches: [main] | |
paths: | |
- .github/workflows/test.yml | |
- target_snowflake/** | |
- tests/** | |
- poetry.lock | |
- pyproject.toml | |
- tox.ini | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
SINGER_SDK_LOG_CONFIG: ./target_snowflake_logging.yaml | |
TARGET_SNOWFLAKE_USER: ${{secrets.TARGET_SNOWFLAKE_USER}} | |
TARGET_SNOWFLAKE_PASSWORD: ${{secrets.TARGET_SNOWFLAKE_PASSWORD}} | |
TARGET_SNOWFLAKE_ACCOUNT: ${{secrets.TARGET_SNOWFLAKE_ACCOUNT}} | |
TARGET_SNOWFLAKE_DATABASE: ${{secrets.TARGET_SNOWFLAKE_DATABASE}} | |
TARGET_SNOWFLAKE_WAREHOUSE: ${{secrets.TARGET_SNOWFLAKE_WAREHOUSE}} | |
TARGET_SNOWFLAKE_ROLE: ${{secrets.TARGET_SNOWFLAKE_ROLE}} | |
strategy: | |
fail-fast: false | |
max-parallel: 2 | |
matrix: | |
python-version: | |
- "3.13" | |
- "3.12" | |
- "3.11" | |
- "3.10" | |
- "3.9" | |
os: | |
- ubuntu-latest | |
include: | |
- python-version: "3.12" | |
os: "macos-latest" | |
- python-version: "3.12" | |
os: "windows-latest" | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: | | |
pip install poetry | |
- name: Install dependencies | |
run: | | |
poetry env use python${{ matrix.python-version }} | |
poetry install | |
- name: Test with pytest | |
run: | | |
poetry run pytest -n auto | |
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
with: | |
name: snowflake-logs-py${{ matrix.python-version }}-${{ matrix.os }} | |
path: snowflake.log |