diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c803af..35e9d7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} \ No newline at end of file + - 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 }} \ No newline at end of file diff --git a/setup.py b/setup.py index 1b324ed..d636a73 100644 --- a/setup.py +++ b/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",