Skip to content

Commit 3388b8d

Browse files
committed
Added github CI tests + issue templates
1 parent 4534fff commit 3388b8d

File tree

5 files changed

+150
-0
lines changed

5 files changed

+150
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Describe the environment**
14+
15+
Describe which OS you're using, which sqeleton version, and any other information that might be relevant to this bug.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is.
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Request support for a database
3+
about: 'Request a driver to support a new database '
4+
title: 'Add support for <database name>'
5+
labels: new-db-driver
6+
assignees: ''
7+
8+
---
9+
10+

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI-COVER-VERSIONS
2+
3+
on:
4+
# push:
5+
# paths:
6+
# - '**.py'
7+
# - '.github/workflows/**'
8+
# - '!dev/**'
9+
pull_request:
10+
branches: [ master ]
11+
workflow_dispatch:
12+
13+
jobs:
14+
unit_tests:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest]
19+
python-version:
20+
- "3.7"
21+
- "3.8"
22+
- "3.9"
23+
- "3.10"
24+
25+
name: Check Python ${{ matrix.python-version }} on ${{ matrix.os }}
26+
runs-on: ${{ matrix.os }}
27+
steps:
28+
- uses: actions/checkout@v3
29+
30+
- name: Setup Python ${{ matrix.python-version }}
31+
uses: actions/setup-python@v3
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
35+
- name: Build the stack
36+
run: docker-compose up -d mysql postgres presto trino clickhouse vertica
37+
38+
- name: Install Poetry
39+
run: pip install poetry
40+
41+
- name: Install package
42+
run: "poetry install"
43+
44+
- name: Run unit tests
45+
env:
46+
PRESTO_URI: 'presto://[email protected]/postgresql/public'
47+
TRINO_URI: 'trino://[email protected]:8081/postgresql/public'
48+
CLICKHOUSE_URI: 'clickhouse://clickhouse:Password1@localhost:9000/clickhouse'
49+
VERTICA_URI: 'vertica://vertica:Password1@localhost:5433/vertica'
50+
SNOWFLAKE_URI: '${{ secrets.SNOWFLAKE_URI }}'
51+
REDSHIFT_URI: '${{ secrets.REDSHIFT_URI }}'
52+
run: |
53+
chmod +x tests/waiting_for_stack_up.sh
54+
./tests/waiting_for_stack_up.sh && TEST_ACROSS_ALL_DBS=0 poetry run unittest-parallel -j 16

.github/workflows/ci_full.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI-COVER-DATABASES
2+
3+
on:
4+
# push:
5+
# paths:
6+
# - '**.py'
7+
# - '.github/workflows/**'
8+
# - '!dev/**'
9+
pull_request:
10+
branches: [ master ]
11+
workflow_dispatch:
12+
13+
jobs:
14+
unit_tests:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest]
19+
python-version:
20+
- "3.10"
21+
22+
name: Check Python ${{ matrix.python-version }} on ${{ matrix.os }}
23+
runs-on: ${{ matrix.os }}
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- name: Setup Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v3
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Build the stack
33+
run: docker-compose up -d mysql postgres presto trino clickhouse vertica
34+
35+
- name: Install Poetry
36+
run: pip install poetry
37+
38+
- name: Install package
39+
run: "poetry install"
40+
41+
- name: Run unit tests
42+
env:
43+
PRESTO_URI: 'presto://[email protected]/postgresql/public'
44+
TRINO_URI: 'trino://[email protected]:8081/postgresql/public'
45+
CLICKHOUSE_URI: 'clickhouse://clickhouse:Password1@localhost:9000/clickhouse'
46+
VERTICA_URI: 'vertica://vertica:Password1@localhost:5433/vertica'
47+
SNOWFLAKE_URI: '${{ secrets.SNOWFLAKE_URI }}'
48+
REDSHIFT_URI: '${{ secrets.REDSHIFT_URI }}'
49+
run: |
50+
chmod +x tests/waiting_for_stack_up.sh
51+
./tests/waiting_for_stack_up.sh && poetry run unittest-parallel -j 16

0 commit comments

Comments
 (0)