Add MariaDB
This commit is contained in:
parent
dd286b33da
commit
c0177a850f
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@ -15,8 +15,17 @@ jobs:
|
|||||||
POSTGRES_DB: dataset
|
POSTGRES_DB: dataset
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
# needed because the postgres container does not provide a healthcheck
|
|
||||||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||||
|
mariadb:
|
||||||
|
image: mariadb
|
||||||
|
env:
|
||||||
|
MYSQL_USER: mariadb
|
||||||
|
MYSQL_PASSWORD: mariadb
|
||||||
|
MYSQL_DATABASE: dataset
|
||||||
|
MYSQL_ROOT_PASSWORD: mariadb
|
||||||
|
ports:
|
||||||
|
- 3306:3306
|
||||||
|
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
@ -43,12 +52,17 @@ jobs:
|
|||||||
DATABASE_URI: 'postgresql+psycopg2://postgres:postgres@postgres/dataset'
|
DATABASE_URI: 'postgresql+psycopg2://postgres:postgres@postgres/dataset'
|
||||||
run: |
|
run: |
|
||||||
make test
|
make test
|
||||||
|
- name: Run MariaDB tests
|
||||||
|
env:
|
||||||
|
DATABASE_URI: 'mysql+pymysql://mariadb:mariadb@mariadb/dataset?charset=utf8'
|
||||||
|
run: |
|
||||||
|
make test
|
||||||
- name: Build a distribution
|
- name: Build a distribution
|
||||||
run: |
|
run: |
|
||||||
python setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
# - name: Publish a Python distribution to PyPI
|
- name: Publish a Python distribution to PyPI
|
||||||
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||||
# uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@master
|
||||||
# with:
|
with:
|
||||||
# user: __token__
|
user: __token__
|
||||||
# password: ${{ secrets.pypi_password }}
|
password: ${{ secrets.pypi_password }}
|
||||||
4
setup.py
4
setup.py
@ -1,10 +1,14 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
with open('README.md') as f:
|
||||||
|
long_description = f.read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='dataset',
|
name='dataset',
|
||||||
version='1.2.3',
|
version='1.2.3',
|
||||||
description="Toolkit for Python-based database access.",
|
description="Toolkit for Python-based database access.",
|
||||||
|
long_description=long_description,
|
||||||
|
long_description_content_type='text/markdown',
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 3 - Alpha",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user