-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github actions - Publish pytest html report, annotate fails
- Loading branch information
Showing
3 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ on: | |
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -20,6 +19,7 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Setup github username | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -38,6 +38,13 @@ jobs: | |
run: | | ||
pip install -r requirements.txt | ||
- name: Tests | ||
- name: Run unit tests | ||
run: | | ||
pytest | ||
pytest --html=build/test-report.html --self-contained-html | ||
- name: Upload test report | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-report | ||
path: build/test-report.html |
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,6 +1,6 @@ | ||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
#addopts = "-ra -q" | ||
testpaths = [ | ||
"test", | ||
"bigflow", | ||
] |
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