-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add experimental support for db2. (#107)
* Draft integration of db2. * Fix date gap. * Add dependencies. * Fix capitaliation tests. * Add case distinction for varchar column. * Add bash script for local development. * Add changelog entry. * Update CHANGELOG.rst Co-authored-by: Ignacio Vergara Kausel <[email protected]> * Add skip message. --------- Co-authored-by: Ignacio Vergara Kausel <[email protected]>
- Loading branch information
Showing
9 changed files
with
156 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,6 +155,55 @@ jobs: | |
with: | ||
file: ./coverage.xml | ||
|
||
|
||
linux-integration_tests-db2: | ||
name: "Linux - integration tests - Python ${{ matrix.PYTHON_VERSION }} - DB2" | ||
runs-on: ubuntu-20.04 | ||
env: | ||
CI: True | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: [ '3.8', '3.9', '3.10' ] | ||
services: | ||
DB: | ||
image: ibmcom/db2:11.5.5.1 | ||
env: | ||
LICENSE: accept | ||
DB2INSTANCE: db2inst1 | ||
DB2INST1_PASSWORD: password | ||
DBNAME: testdb | ||
UPDATEAVAIL: "NO" | ||
options: --privileged | ||
ports: | ||
- 50000:50000 | ||
|
||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Fetch full git history | ||
run: git fetch --prune --unshallow | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
miniforge-variant: Mambaforge | ||
miniforge-version: 4.11.0-2 | ||
use-mamba: true | ||
environment-file: environment.yml | ||
activate-environment: datajudge | ||
- name: Run Integration Tests | ||
shell: bash -l {0} | ||
run: | | ||
flit install -s | ||
pytest --cov=datajudge --cov-report=xml --cov-append --backend=db2 tests/integration | ||
- name: Generate code coverage report | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage.xml | ||
|
||
|
||
linux-integration_tests-snowflake: | ||
name: "Linux - integration tests - Python ${{ matrix.PYTHON_VERSION }} - Snowflake" | ||
runs-on: ubuntu-latest | ||
|
@@ -228,6 +277,7 @@ jobs: | |
with: | ||
file: ./coverage.xml | ||
|
||
|
||
linux-integration_tests-impala-column-pt1: | ||
name: "Linux - integration tests - Python ${{ matrix.PYTHON_VERSION }} - Impala - pt1" | ||
runs-on: ubuntu-20.04 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,5 @@ dependencies: | |
- flit | ||
- sphinx-autodoc-typehints | ||
- impyla | ||
- ibm_db | ||
- ibm_db_sa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
docker run -itd --name mydb2 --privileged=true -p 50000:50000 -e LICENSE=accept -e DB2INST1_PASSWORD=password -e DBNAME=testdb -v ~/database ibmcom/db2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.