|
@@ -8,14 +8,14 @@ name: run_tests
|
|
|
|
|
|
steps:
|
|
steps:
|
|
# Run tests against Python/Flask engine backend (with pytest)
|
|
# Run tests against Python/Flask engine backend (with pytest)
|
|
- - name: pytest
|
|
|
|
|
|
+ - name: pytest with coverage
|
|
image: python:3.10.4
|
|
image: python:3.10.4
|
|
commands:
|
|
commands:
|
|
# Install dependencies
|
|
# Install dependencies
|
|
- pip install poetry
|
|
- pip install poetry
|
|
- poetry install --all-extras
|
|
- poetry install --all-extras
|
|
# Start with a fresh database (which is already running as a service from Drone)
|
|
# Start with a fresh database (which is already running as a service from Drone)
|
|
- - poetry run pytest
|
|
|
|
|
|
+ - poetry run pytest --cov-report term:skip-covered --cov=pysportsdb tests
|
|
volumes:
|
|
volumes:
|
|
# Mount pip cache from host
|
|
# Mount pip cache from host
|
|
- name: pip_cache
|
|
- name: pip_cache
|