mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-09 20:29:55 +02:00
CI: (try to) store/upload coverage results
This commit is contained in:
parent
4339444e47
commit
a41f18b13d
4 changed files with 22 additions and 4 deletions
20
.github/workflows/test-eynollah.yml
vendored
20
.github/workflows/test-eynollah.yml
vendored
|
@ -47,7 +47,25 @@ jobs:
|
||||||
make install EXTRAS=OCR,plotting
|
make install EXTRAS=OCR,plotting
|
||||||
make deps-test
|
make deps-test
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: make test
|
run: make coverage PYTEST_ARGS="--junitxml=pytest.xml"
|
||||||
|
- name: Get coverage results
|
||||||
|
run: |
|
||||||
|
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
|
||||||
|
coverage html json xml
|
||||||
|
- name: Store coverage results
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: coverage-report
|
||||||
|
path: |
|
||||||
|
htmlcov
|
||||||
|
pytest.xml
|
||||||
|
coverage.xml
|
||||||
|
coverage.json
|
||||||
|
- name: Upload coverage results
|
||||||
|
uses: codecov/codecov-action@v4
|
||||||
|
with:
|
||||||
|
files: coverage.xml
|
||||||
|
fail_ci_if_error: false
|
||||||
- name: Test standalone CLI
|
- name: Test standalone CLI
|
||||||
run: make smoke-test
|
run: make smoke-test
|
||||||
- name: Test OCR-D CLI
|
- name: Test OCR-D CLI
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -113,8 +113,7 @@ test:
|
||||||
coverage:
|
coverage:
|
||||||
coverage erase
|
coverage erase
|
||||||
$(MAKE) test PYTHON="coverage run"
|
$(MAKE) test PYTHON="coverage run"
|
||||||
coverage report
|
coverage report -m
|
||||||
coverage html
|
|
||||||
|
|
||||||
# Build docker image
|
# Build docker image
|
||||||
docker:
|
docker:
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
[](https://pypi.org/project/eynollah/)
|
[](https://pypi.org/project/eynollah/)
|
||||||
[](https://github.com/qurator-spk/eynollah/actions/workflows/test-eynollah.yml)
|
[](https://github.com/qurator-spk/eynollah/actions/workflows/test-eynollah.yml)
|
||||||
|
[](https://github.com/qurator-spk/eynollah/actions/workflows/build-docker.yml)
|
||||||
[](https://opensource.org/license/apache-2-0/)
|
[](https://opensource.org/license/apache-2-0/)
|
||||||
[](https://doi.org/10.1145/3604951.3605513)
|
[](https://doi.org/10.1145/3604951.3605513)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
pytest
|
pytest
|
||||||
pytest-subtests
|
pytest-subtests
|
||||||
coverage
|
coverage[toml]
|
||||||
black
|
black
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue