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
|
||||
ports:
|
||||
- 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
|
||||
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:
|
||||
- uses: actions/checkout@v1
|
||||
@ -43,12 +52,17 @@ jobs:
|
||||
DATABASE_URI: 'postgresql+psycopg2://postgres:postgres@postgres/dataset'
|
||||
run: |
|
||||
make test
|
||||
- name: Run MariaDB tests
|
||||
env:
|
||||
DATABASE_URI: 'mysql+pymysql://mariadb:mariadb@mariadb/dataset?charset=utf8'
|
||||
run: |
|
||||
make test
|
||||
- name: Build a distribution
|
||||
run: |
|
||||
python setup.py sdist bdist_wheel
|
||||
# - name: Publish a Python distribution to PyPI
|
||||
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||
# uses: pypa/gh-action-pypi-publish@master
|
||||
# with:
|
||||
# user: __token__
|
||||
# password: ${{ secrets.pypi_password }}
|
||||
- name: Publish a Python distribution to PyPI
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.pypi_password }}
|
||||
4
setup.py
4
setup.py
@ -1,10 +1,14 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
with open('README.md') as f:
|
||||
long_description = f.read()
|
||||
|
||||
setup(
|
||||
name='dataset',
|
||||
version='1.2.3',
|
||||
description="Toolkit for Python-based database access.",
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
classifiers=[
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Intended Audience :: Developers",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user