[Tests] Trying to use stock coverage
This commit is contained in:
parent
a60b768149
commit
a2bb5e58ba
|
|
@ -46,12 +46,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
rm -rf output
|
rm -rf output
|
||||||
rm -f tests/.local
|
rm -f tests/.local
|
||||||
pip3 install --upgrade coverage
|
|
||||||
pip3 install --upgrade pytest
|
pip3 install --upgrade pytest
|
||||||
pip3 install --upgrade pytest-xdist
|
pip3 install --upgrade pytest-xdist
|
||||||
coverage3 erase
|
coverage3 erase
|
||||||
# Create the caches with macros
|
# Create the caches with macros
|
||||||
coverage3 run src/kibot --help-outputs > /dev/null
|
python3-coverage run src/kibot --help-outputs > /dev/null
|
||||||
# Individual run for specific tests
|
# Individual run for specific tests
|
||||||
# pytest --log-cli-level debug -k "test_ibom_parse_fail" --test_dir output
|
# pytest --log-cli-level debug -k "test_ibom_parse_fail" --test_dir output
|
||||||
# Run the 90% faster tests (under 3 s)
|
# Run the 90% faster tests (under 3 s)
|
||||||
|
|
@ -59,9 +58,9 @@ jobs:
|
||||||
pytest -v --durations=0 -m "not slow" -n 2 --test_dir output
|
pytest -v --durations=0 -m "not slow" -n 2 --test_dir output
|
||||||
# Run the slowest at the end and exit on the first error
|
# Run the slowest at the end and exit on the first error
|
||||||
pytest -v --durations=0 -m slow -x --test_dir output
|
pytest -v --durations=0 -m slow -x --test_dir output
|
||||||
coverage3 combine
|
python3-coverage combine
|
||||||
coverage3 report
|
python3-coverage report
|
||||||
coverage3 html -d output/htmlcov
|
python3-coverage html -d output/htmlcov
|
||||||
- name: Store results
|
- name: Store results
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue