Skip to content

Sqlalchemy 2 support for CI #4

Sqlalchemy 2 support for CI

Sqlalchemy 2 support for CI #4

Workflow file for this run

name: Tests CI
on:
- push
- pull_request
jobs:
tests:
name: ${{ matrix.tox }}
runs-on: ubuntu-20.04
services:
mariadb:
image: mariadb:10
ports:
- 3306:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: test_sqlalchemy_filters
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --lc-collate=en_US.utf8 --lc-ctype=en_US.utf8"
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[dev]'
python -m pip install tox-gh-actions
- name: Test with tox
run: tox