-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use tox and combine workflows
combine workflows so that tests are executed before a container is deployed
- Loading branch information
1 parent
e48a384
commit 001adc3
Showing
3 changed files
with
45 additions
and
46 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
37 changes: 35 additions & 2 deletions
37
.github/workflows/docker.yml → .github/workflows/docat.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[tox] | ||
envlist = lint | ||
skip_missing_interpreters = True | ||
skipsdist = True | ||
|
||
[testenv:lint] | ||
[testenv:flake8] | ||
deps = flake8 | ||
black | ||
isort | ||
commands = flake8 --show-source app.py | ||
black --check app.py | ||
isort --check-only app.py | ||
commands = flake8 --show-source app.py {posargs} | ||
|
||
[testenv:black] | ||
deps = black | ||
commands = black --check app.py {posargs} | ||
|
||
[testenv:isort] | ||
deps = isort | ||
commands = isort --check-only app.py {posargs} |