-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from tomviner/sqla14-with-improved-github-actions
- Loading branch information
Showing
11 changed files
with
192 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[coverage:run] | ||
plugins = | ||
coverage_conditional_plugin | ||
|
||
[coverage:coverage_conditional_plugin] | ||
rules = | ||
"package_version('sqlalchemy') < (1, 4)": no_cover_sqlalchemy_lt_1_4 | ||
"package_version('sqlalchemy') >= (1, 4)": no_cover_sqlalchemy_gte_1_4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Tests CI | ||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
tests: | ||
name: ${{ matrix.tox }} | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
mariadb: | ||
image: mariadb:latest | ||
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: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# sqlalchemylatest (i.e. > 2.0.0) is not yet supported | ||
# for any version of python | ||
|
||
- {python: '3.7', tox: "py37-sqlalchemy1.0"} | ||
- {python: '3.7', tox: "py37-sqlalchemy1.1"} | ||
- {python: '3.7', tox: "py37-sqlalchemy1.2"} | ||
- {python: '3.7', tox: "py37-sqlalchemy1.3"} | ||
- {python: '3.7', tox: "py37-sqlalchemy1.4"} | ||
|
||
- {python: '3.8', tox: "py38-sqlalchemy1.0"} | ||
- {python: '3.8', tox: "py38-sqlalchemy1.1"} | ||
- {python: '3.8', tox: "py38-sqlalchemy1.2"} | ||
- {python: '3.8', tox: "py38-sqlalchemy1.3"} | ||
- {python: '3.8', tox: "py38-sqlalchemy1.4"} | ||
|
||
- {python: '3.9', tox: "py39-sqlalchemy1.0"} | ||
- {python: '3.9', tox: "py39-sqlalchemy1.1"} | ||
- {python: '3.9', tox: "py39-sqlalchemy1.2"} | ||
- {python: '3.9', tox: "py39-sqlalchemy1.3"} | ||
- {python: '3.9', tox: "py39-sqlalchemy1.4"} | ||
|
||
# python3.10 with sqlalchemy <= 1.1 errors with: | ||
# AttributeError: module 'collections' has no attribute 'MutableMapping' | ||
- {python: '3.10', tox: "py310-sqlalchemy1.2"} | ||
- {python: '3.10', tox: "py310-sqlalchemy1.3"} | ||
- {python: '3.10', tox: "py310-sqlalchemy1.4"} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- run: pip install tox~=3.28 | ||
- run: tox -e ${{ matrix.tox }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[flake8] | ||
max-line-length = 88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.