-
Notifications
You must be signed in to change notification settings - Fork 107
Minor improvements in testing, builds and pipeline #707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
1a3bee2
47de52f
0b62bc9
d82c5cb
f5143e9
a022825
9635e80
51add85
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
set -e -x | ||
coverage run -p --branch -m pytest tests/unittests | ||
pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch tests/unittests |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
[flake8] | ||
# it's not a bug that we aren't using all of hacking, ignore: | ||
# H402: Module level import not at top of file | ||
# W503: Line break occurred before a binary operator | ||
# E731: Do not assign a lambda expression, use a def | ||
ignore = W503,E402,E731 | ||
exclude = | ||
.git, __pycache__, build, dist, .eggs, .github, .local, docs/, | ||
Samples, azure_functions_worker/protos/, | ||
azure_functions_worker/_thirdparty/typing_inspect.py, | ||
tests/unittests/test_typing_inspect.py, | ||
.venv*, .env*, .vscode, venv | ||
|
||
exclude = .git, __pycache__, build, dist, .eggs, .github, .local, docs/, | ||
Samples, azure_functions_worker/protos/, | ||
azure_functions_worker/_thirdparty/typing_inspect.py, | ||
tests/unittests/test_typing_inspect.py, .venv*, .env*, .vscode, venv | ||
|
||
max-line-length = 80 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -290,7 +290,12 @@ def run(self): | |
'mypy', | ||
'pytest', | ||
'requests==2.*', | ||
'coverage' | ||
'coverage', | ||
'pytest-sugar', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious, I don't see these packages are used anywhere in the code, are they pytest extensions and will be executed automatically? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
pytest --instafail --cov=./azure_functions_worker --cov-report xml --cov-branch --cov-append tests/endtoend
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
'pytest-cov', | ||
'pytest-xdist', | ||
'pytest-randomly', | ||
'pytest-instafail' | ||
] | ||
}, | ||
include_package_data=True, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this change will make us running the release/* branch everynight. Do you suggest moving the previous releases into releases/ancient/* branches now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set up the branch patterns using the best practices as recommended by AzDevops. We can change the daily runs to not target release branches.