-
Notifications
You must be signed in to change notification settings - Fork 20
53 lines (52 loc) · 1.55 KB
/
ci.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
53
name: ci
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: 'actions/checkout@v3'
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.11
- name: Authenticate google cloud
uses: 'google-github-actions/auth@v1'
with:
credentials_json: ${{ secrets.GOOGLE_KEY }}
- name: Generate coverage report
run: |
pip install --upgrade pip
pip install '.[test,snowpark,pyspark,pandas,duckdb,bigquery,polars,dagster,cloud,pdf,daft]'
coverage run -m pytest --ignore=test/unit/bigquery test/unit
coverage xml -o coverage.xml
env:
SF_ACCOUNT: ${{ secrets.SF_ACCOUNT }}
SF_USER: ${{ secrets.SF_USER }}
SF_PASSWORD: ${{ secrets.SF_PASSWORD }}
SF_ROLE: ${{ secrets.SF_ROLE }}
SF_WAREHOUSE: ${{ secrets.SF_WAREHOUSE }}
SF_DATABASE: ${{ secrets.SF_DATABASE }}
SF_SCHEMA: ${{ secrets.SF_SCHEMA }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
env_vars: OS,PYTHON
fail_ci_if_error: true
files: coverage.xml
flags: unittests
name: codecov-umbrella
verbose: true
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install mkdocs-material mkdocstrings[python]
- run: mkdocs gh-deploy --force