-
Notifications
You must be signed in to change notification settings - Fork 34
52 lines (45 loc) · 1.49 KB
/
End2EndTest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 }}