Skip to content

SNOW-1758368: add readme for validation #125

SNOW-1758368: add readme for validation

SNOW-1758368: add readme for validation #125

Workflow file for this run

name: Snowpipe Python SDK Tests
on:
push:
branches: [ master ]
pull_request:
branches: '**'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.8', '3.9', '3.10' ]
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: Display Python version
run: python -c "import sys; import os; print(\"\n\".join(os.environ[\"PATH\"].split(os.pathsep))); print(sys.version); print(sys.executable);"
- name: Decrypt profile.json
env:
DECRYPTION_PASSPHRASE: ${{ secrets.PARAMETERS_PY_DECRYPT_PASSPHRASE }}
run: |
./scripts/decrypt_secret.sh
- name: Generate Pytest coverage report
run: |
pip install pytest
pip install wheel
pip install pytest-cov
pip install .
pip install snowflake-connector-python
python -m pytest --cov=./ --cov-report=xml --tb=native tests/
# pytest --cov=./ --cov-report=xml --tb=native tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ./snowflake-ingest-python-coverage.xml
name: codecov-snowpipe-python-sdk
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}