Update version to 1.0.10 for release #128
This file contains 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: 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 }} |