Skip to content

Added representation and validation tests #246

Added representation and validation tests

Added representation and validation tests #246

Workflow file for this run

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.8
- 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]'
coverage run -m pytest 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
- run: mkdocs gh-deploy --force