Skip to content

Commit

Permalink
Fixes #34: enable ci for python 3.10, drop nose (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
eshaan7 committed Dec 22, 2021
1 parent 1c568c9 commit 3374da2
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 19 deletions.
20 changes: 20 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "80...100"

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment:
layout: "reach,diff,flags,files,footer"
behavior: default
require_changes: true
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[run]
branch = True
source = flask-shell2http
source = flask_shell2http
omit =
examples/*

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
max-parallel: 5
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 0 additions & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
flask_testing
nose
codecov
tox
tox-gh-actions
Expand Down
2 changes: 1 addition & 1 deletion tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from examples.basic import app, shell2http

from ._utils import CustomTestCase, post_req_keys, get_req_keys
from tests._utils import CustomTestCase, post_req_keys, get_req_keys


class TestBasic(CustomTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_callback_signal.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from examples.with_signals import app, my_signal

from ._utils import CustomTestCase
from tests._utils import CustomTestCase


class TestCallbackAndSignal(CustomTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_decorators.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from examples.with_decorators import app

from ._utils import CustomTestCase
from tests._utils import CustomTestCase


class TestDecorators(CustomTestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_multiple_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from examples.multiple_files import app

from ._utils import CustomTestCase
from tests._utils import CustomTestCase


class TestMultipleFiles(CustomTestCase):
Expand Down
17 changes: 6 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
[tox]
envlist =
flake8,
docs-html,
py{36,37,38,39}-flask1
py{36,37,38,39}-flask2

[testenv:flake8]
changedir = {toxinidir}
commands = flake8 . --count
deps = flake8
py{36,37,38,39,310}-flask1
py{36,37,38,39,310}-flask2

[testenv]
commands =
nosetests --with-coverage
coverage run -m unittest discover tests
setenv =
PIP_INDEX_URL = https://pypi.python.org/simple/
deps =
Expand All @@ -24,8 +18,9 @@ deps =
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39, flake8, docs-html
3.8: py38, docs-html
3.9: py39
3.10: py310

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

0 comments on commit 3374da2

Please sign in to comment.