[Tests] Splitted the fast and slow output dirs.

- Trying to figure out why dep_convert failed and no output dir
  was created.
This commit is contained in:
Salvador E. Tropea 2022-07-09 20:00:29 -03:00
parent 15d5f90a27
commit c891eda8db
1 changed files with 10 additions and 5 deletions

View File

@ -44,20 +44,23 @@ jobs:
flake8 . --count --exit-zero --statistics
- name: Test ${{ matrix.ki_release }}
run: |
rm -rf output
rm -rf output_fast
rm -rf output_slow
rm -f tests/.local
mkdir output_fast
mkdir output_slow
pip3 install --upgrade pytest
pip3 install --upgrade pytest-xdist
python3-coverage erase
# Create the caches with macros
python3-coverage run src/kibot --help-outputs > /dev/null
# 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_fast
# Run the 90% faster tests (under 3 s)
# Do it in parallel
pytest -v --durations=0 -m "not slow" -n 2 --test_dir=output
pytest -v --durations=0 -m "not slow" -n 2 --test_dir=output_fast
# 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_slow
python3-coverage combine
python3-coverage report
python3-coverage html -d output/htmlcov
@ -66,7 +69,9 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: Test_Output_${{ matrix.ki_release }}
path: output
path: |
output_fast
output_slow
- name: Upload Coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}