Skip to content

Commit 3374da2

Browse files
authored
Fixes #34: enable ci for python 3.10, drop nose (#37)
1 parent 1c568c9 commit 3374da2

File tree

9 files changed

+33
-19
lines changed

9 files changed

+33
-19
lines changed

.codecov.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
4+
coverage:
5+
precision: 2
6+
round: down
7+
range: "80...100"
8+
9+
parsers:
10+
gcov:
11+
branch_detection:
12+
conditional: yes
13+
loop: yes
14+
method: no
15+
macro: no
16+
17+
comment:
18+
layout: "reach,diff,flags,files,footer"
19+
behavior: default
20+
require_changes: true

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
22
branch = True
3-
source = flask-shell2http
3+
source = flask_shell2http
44
omit =
55
examples/*
66

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
fail-fast: false
10-
max-parallel: 4
10+
max-parallel: 5
1111
matrix:
12-
python-version: ['3.6', '3.7', '3.8', '3.9']
12+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
1313

1414
steps:
1515
- uses: actions/checkout@v2

requirements.dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
flask_testing
2-
nose
32
codecov
43
tox
54
tox-gh-actions

tests/test_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from examples.basic import app, shell2http
44

5-
from ._utils import CustomTestCase, post_req_keys, get_req_keys
5+
from tests._utils import CustomTestCase, post_req_keys, get_req_keys
66

77

88
class TestBasic(CustomTestCase):

tests/test_callback_signal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from examples.with_signals import app, my_signal
22

3-
from ._utils import CustomTestCase
3+
from tests._utils import CustomTestCase
44

55

66
class TestCallbackAndSignal(CustomTestCase):

tests/test_decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from examples.with_decorators import app
22

3-
from ._utils import CustomTestCase
3+
from tests._utils import CustomTestCase
44

55

66
class TestDecorators(CustomTestCase):

tests/test_multiple_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from examples.multiple_files import app
55

6-
from ._utils import CustomTestCase
6+
from tests._utils import CustomTestCase
77

88

99
class TestMultipleFiles(CustomTestCase):

tox.ini

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
[tox]
22
envlist =
3-
flake8,
43
docs-html,
5-
py{36,37,38,39}-flask1
6-
py{36,37,38,39}-flask2
7-
8-
[testenv:flake8]
9-
changedir = {toxinidir}
10-
commands = flake8 . --count
11-
deps = flake8
4+
py{36,37,38,39,310}-flask1
5+
py{36,37,38,39,310}-flask2
126

137
[testenv]
148
commands =
15-
nosetests --with-coverage
9+
coverage run -m unittest discover tests
1610
setenv =
1711
PIP_INDEX_URL = https://pypi.python.org/simple/
1812
deps =
@@ -24,8 +18,9 @@ deps =
2418
python =
2519
3.6: py36
2620
3.7: py37
27-
3.8: py38
28-
3.9: py39, flake8, docs-html
21+
3.8: py38, docs-html
22+
3.9: py39
23+
3.10: py310
2924

3025
# Configuration for coverage and flake8 is being set in `./setup.cfg`
3126
[testenv:codecov]

0 commit comments

Comments
 (0)