mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-10 08:07:43 -06:00
fix module target for coverage, add junit XML output, set pipefail to prevent exit code hiding
This commit is contained in:
3
.github/workflows/test.yaml
vendored
3
.github/workflows/test.yaml
vendored
@@ -38,7 +38,8 @@ jobs:
|
|||||||
- name: Pytest
|
- name: Pytest
|
||||||
run: |
|
run: |
|
||||||
cd backend
|
cd backend
|
||||||
poetry run pytest --color=yes --cov-report=term-missing:skip-covered --cov=app tests/ | tee pytest-coverage.txt
|
set -o pipefail # otherwise 'tee' will eat the exit code
|
||||||
|
poetry run pytest --color=yes --cov=linkpulse --cov-report=term-missing:skip-covered --junitxml=pytest.xml | tee pytest-coverage.txt
|
||||||
|
|
||||||
- name: Pytest coverage comment
|
- name: Pytest coverage comment
|
||||||
id: coverageComment
|
id: coverageComment
|
||||||
|
|||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,4 +1,6 @@
|
|||||||
.env
|
.env
|
||||||
|
pytest.xml
|
||||||
|
pytest-coverage.txt
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
@@ -161,4 +163,4 @@ cython_debug/
|
|||||||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
|
|||||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -15,5 +15,8 @@
|
|||||||
"structlog",
|
"structlog",
|
||||||
"timestamper"
|
"timestamper"
|
||||||
],
|
],
|
||||||
"python.analysis.extraPaths": ["./backend/"]
|
"python.analysis.extraPaths": ["./backend/"],
|
||||||
|
"[github-actions-workflow]": {
|
||||||
|
"editor.formatOnSave": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user