Skip to content

Commit

Permalink
Merge pull request #77 from kytos-ng/fix/tox
Browse files Browse the repository at this point in the history
[Fix] Added coverage an lint on tox envlist
  • Loading branch information
viniarck authored Jul 1, 2022
2 parents 2a1c92f + 734b282 commit acd568e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.9]

steps:
- uses: actions/checkout@v1
Expand Down
7 changes: 4 additions & 3 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ filter:
paths: ["pyof/*", "tests/*"]
build:
environment:
python: 3.6
python: 3.9.12
postgresql: false
redis: false
dependencies:
Expand All @@ -17,8 +17,9 @@ build:
- pip install coverage
override:
-
command: 'tox -e py36'
only_if: 'tox -a | grep -q py36'
command: 'tox'
only_if: 'tox -a | grep -q py39'
idle_timeout: 300
coverage:
file: '.coverage'
config_file: '.coveragerc'
Expand Down
15 changes: 10 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
[tox]
envlist = py39
envlist = py39,coverage,lint

[gh-actions]
python =
3.9: py39

[testenv]
whitelist_externals=
rm
make
rm
make

deps=
-rrequirements/dev.txt

[testenv:coverage]
commands=
python3 setup.py coverage {posargs}

deps=
-rrequirements/dev.txt
[testenv:lint]
commands=
python3 setup.py lint

0 comments on commit acd568e

Please sign in to comment.