Skip to content

Commit a1c72a3

Browse files
authored
GitHub Action to test with tox (#31)
1 parent 4085abb commit a1c72a3

File tree

4 files changed

+31
-37
lines changed

4 files changed

+31
-37
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Python package
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python: [2.7, 3.6, 3.7, 3.8, 3.9]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup Python ${{ matrix.python }}
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: ${{ matrix.python }}
17+
- run: pip install tox
18+
- run: tox -e py
19+
- if: matrix.python == 3.9
20+
run: TOXENV=codespell,flake8,manifest,docs tox

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

dbutils/simple_pooled_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* Connections should have some sort of maximum usage limit
4848
after which they should be automatically closed and reopened.
4949
* Prefer or enforce thread-affinity for the connections,
50-
allowing for both sharable and non-sharable connections.
50+
allowing for both shareable and non-shareable connections.
5151
5252
Please note that these and other ideas have been already
5353
implemented in in PooledDB, a more sophisticated version

tox.ini

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,26 @@ deps = pytest
88
commands =
99
pytest {posargs}
1010

11+
[testenv:codespell]
12+
basepython = python3.9
13+
deps = codespell
14+
commands =
15+
codespell --ignore-words-list="dont'" --quiet-level=2 --skip="./.*,./docs/main.de.*"
16+
1117
[testenv:flake8]
12-
basepython = python3.8
18+
basepython = python3.9
1319
deps = flake8
1420
commands =
15-
flake8 dbutils tests docs setup.py
21+
flake8 .
1622

1723
[testenv:manifest]
18-
basepython = python3.8
24+
basepython = python3.9
1925
deps = check-manifest
2026
commands =
2127
check-manifest -v
2228

2329
[testenv:docs]
24-
basepython = python3.8
30+
basepython = python3.9
2531
deps = docutils
2632
changedir = docs
2733
commands =

0 commit comments

Comments
 (0)