From 6eb7d5d0d2e13c11ba9aba832880701d451b773e Mon Sep 17 00:00:00 2001 From: Brian Thorne Date: Thu, 16 Jul 2020 21:25:17 +1200 Subject: [PATCH] Use tox for testing with github actions --- .github/workflows/build.yml | 10 +++++++--- tox.ini | 5 +++++ 2 files changed, 12 insertions(+), 3 deletions(-) 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