Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/test_with_tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Python package

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: [2.7, 3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: pip install tox
- run: tox -e py
- if: matrix.python == 3.9
run: TOXENV=codespell,flake8,manifest,docs tox
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion dbutils/simple_pooled_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* Connections should have some sort of maximum usage limit
after which they should be automatically closed and reopened.
* Prefer or enforce thread-affinity for the connections,
allowing for both sharable and non-sharable connections.
allowing for both shareable and non-shareable connections.

Please note that these and other ideas have been already
implemented in in PooledDB, a more sophisticated version
Expand Down
14 changes: 10 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,26 @@ deps = pytest
commands =
pytest {posargs}

[testenv:codespell]
basepython = python3.9
deps = codespell
commands =
codespell --ignore-words-list="dont'" --quiet-level=2 --skip="./.*,./docs/main.de.*"

[testenv:flake8]
basepython = python3.8
basepython = python3.9
deps = flake8
commands =
flake8 dbutils tests docs setup.py
flake8 .

[testenv:manifest]
basepython = python3.8
basepython = python3.9
deps = check-manifest
commands =
check-manifest -v

[testenv:docs]
basepython = python3.8
basepython = python3.9
deps = docutils
changedir = docs
commands =
Expand Down