diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3bcb94f86..06e72125e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install .[test] - - name: Test with pytest + pip install tox + pip install -r requirements-lint.txt + - name: Test with pytest via tox run: | - pytest + tox -e gh + - name: Code Format Check with Black + run: | + black --check --verbose . diff --git a/tox.ini b/tox.ini index e5df520fe..5cf50bd78 100644 --- a/tox.ini +++ b/tox.ini @@ -15,6 +15,11 @@ commands = recreate = True +[testenv:gh] +passenv = + CI + PYTHONPATH + [testenv:travis] passenv = CI