ci: merge quick and integration tests into a single test step
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -116,20 +116,12 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements-dev.txt
|
||||
|
||||
- name: Run Quick Tests
|
||||
- name: Run Tests
|
||||
run: >
|
||||
pytest tests/ -v --timeout=120
|
||||
--cov=app --cov-report=xml:coverage.xml
|
||||
--junitxml=junit-quick.xml -o junit_family=legacy
|
||||
-m "not e2e and not requires_docker and not requires_external and not slow"
|
||||
|
||||
- name: Run Integration Tests
|
||||
if: success() || failure()
|
||||
run: >
|
||||
pytest tests/ -v --timeout=300
|
||||
--cov=app --cov-append --cov-report=xml:coverage.xml
|
||||
--junitxml=junit-integration.xml -o junit_family=legacy
|
||||
-m "(requires_docker or requires_external or slow) and not e2e"
|
||||
pytest tests/ -v --timeout=300
|
||||
--cov=app --cov-report=xml:coverage.xml
|
||||
--junitxml=junit.xml -o junit_family=legacy
|
||||
-m "not e2e"
|
||||
|
||||
- name: Upload Unified Coverage to Codecov
|
||||
if: always()
|
||||
|
||||
Reference in New Issue
Block a user