-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message parsing (#298)
* Improve error message parsing * Reformat line * Update CI as parts are broken (#299) * Update deps * Change coverage generation --------- Co-authored-by: tb1337 <[email protected]>
- Loading branch information
Showing
5 changed files
with
41 additions
and
21 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 |
---|---|---|
|
@@ -37,12 +37,12 @@ jobs: | |
- name: 🏗 Install Python dependencies | ||
run: poetry install --no-interaction | ||
- name: 🚀 Run pytest | ||
run: poetry run pytest --cov pypaperless tests | ||
run: poetry run pytest -v --cov-report xml:coverage.xml --cov src tests | ||
- name: ⬆️ Upload coverage artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: coverage-${{ matrix.python }} | ||
path: .coverage | ||
path: coverage.xml | ||
|
||
coverage: | ||
runs-on: ubuntu-latest | ||
|
@@ -68,12 +68,8 @@ jobs: | |
poetry config virtualenvs.in-project true | ||
- name: 🏗 Install dependencies | ||
run: poetry install --no-interaction | ||
- name: 🚀 Process coverage results | ||
run: | | ||
poetry run coverage combine coverage*/.coverage* | ||
poetry run coverage xml -i | ||
- name: 🚀 Upload coverage report | ||
uses: codecov/[email protected] | ||
with: | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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