Add MariaDB
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user