-
Notifications
You must be signed in to change notification settings - Fork 27
64 lines (57 loc) · 1.94 KB
/
vertica-test.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
54
55
56
57
58
59
60
61
62
name: Test package against latest Vertica
# Triggers the workflow on push or pull request events
on: [push, workflow_dispatch]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8','3.9' ,'3.10', '3.11']
services:
vertica:
image: vertica/vertica-ce:latest
ports:
- 5433:5433
- 5444:5444
env:
VERTICA_DB_NAME: docker
VMART_ETL_SCRIPT: ''
VMART_ETL_SQL: ''
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine pip-tools
- name: Build package
run: python -m build
- name: Check
run: python -m twine check -- dist/*.tar.gz
- name: Extract reqs
run: pip-compile -o requirements.txt --extra dev setup.py
- name: Install reqs
run: pip install -r requirements.txt
- name: Install
run: python setup.py install
- name: Test Basic
run: python -m pytest tests/functional/adapter/test_basic.py
- name: Test Constraints
run: python -m pytest tests/functional/adapter/constraints/test_constraints.py
- name: Test Incremental
run: python -m pytest tests/functional/adapter/incremental/
- name: Test Concurrency
run: python -m pytest tests/functional/adapter/concurrency/
- name: Test Doc Generate
run: python -m pytest tests/functional/adapter/test_doc_gen.py
- name: Test Data Type Boolean
run: python -m pytest tests/functional/adapter/test_data_types.py
- name: Test Concat
run: python -m pytest tests/functional/adapter/utils/test_concat.py
- name: Test Data Type Int
run: python -m pytest tests/functional/adapter/utils/data_type/