From 6c09b3d316d9c9f8fef03cc5a1c4e4d0244743cf Mon Sep 17 00:00:00 2001 From: "Vera Alvarez, Roberto" Date: Thu, 17 Sep 2020 10:54:06 -0400 Subject: [PATCH] Removing tox from github test --- .github/workflows/python-package.yml | 12 +++++++++--- requirements/test.in | 4 ---- requirements/test.txt | 16 +--------------- 3 files changed, 10 insertions(+), 22 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 253331f..c2f2a84 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -26,8 +26,14 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install tox flake8 + pip install flake8 if [ -f requirements/test.txt ]; then pip install -r requirements/test.txt; fi - - name: Test with tox + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 src/ tests/ --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 src/ tests/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest run: | - tox + pytest diff --git a/requirements/test.in b/requirements/test.in index 304f811..36b2fd4 100644 --- a/requirements/test.in +++ b/requirements/test.in @@ -2,7 +2,3 @@ pytest pytest-cov -sphinx-argparse -mock -sphinx-rtd-theme - diff --git a/requirements/test.txt b/requirements/test.txt index a32e010..a113572 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1,4 +1,4 @@ -# SHA1:6d4c9a6ffab8b2fa46a52aa17b0c622b8bdf93cd +# SHA1:93447d277520c0753780b9baa57da5383dde620e # # This file is autogenerated by pip-compile-multi # To update, run: @@ -6,27 +6,13 @@ # pip-compile-multi # -r base.txt -alabaster==0.7.12 # via sphinx -babel==2.8.0 # via sphinx coverage==5.3 # via pytest-cov -imagesize==1.2.0 # via sphinx iniconfig==1.0.1 # via pytest -mock==4.0.2 # via -r requirements/test.in more-itertools==8.5.0 # via pytest pluggy==0.13.1 # via pytest py==1.9.0 # via pytest pytest-cov==2.10.1 # via -r requirements/test.in pytest==6.0.2 # via -r requirements/test.in, pytest-cov -snowballstemmer==2.0.0 # via sphinx -sphinx-argparse==0.2.5 # via -r requirements/test.in -sphinx-rtd-theme==0.5.0 # via -r requirements/test.in -sphinx==3.2.1 # via sphinx-argparse, sphinx-rtd-theme -sphinxcontrib-applehelp==1.0.2 # via sphinx -sphinxcontrib-devhelp==1.0.2 # via sphinx -sphinxcontrib-htmlhelp==1.0.3 # via sphinx -sphinxcontrib-jsmath==1.0.1 # via sphinx -sphinxcontrib-qthelp==1.0.3 # via sphinx -sphinxcontrib-serializinghtml==1.1.4 # via sphinx toml==0.10.1 # via pytest # The following packages are considered to be unsafe in a requirements file: