Skip to content

Commit

Permalink
Only run example test
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Apr 16, 2023
1 parent 55ac760 commit 45b21e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ jobs:
- database: "postgres:14"
pytest-options: "--only-services"


fail-fast: false

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -194,12 +193,12 @@ jobs:
# Parallelize tests by scope to reduce expensive service fixture duplication
# Do not allow the test suite to build images, as we want the prebuilt images to be tested
# Do not run Kubernetes service tests, we do not have a cluster available
pytest tests -vvv --numprocesses auto --dist loadscope --disable-docker-image-builds --exclude-service kubernetes --durations=25 --cov=src/ --cov=tests/ --no-cov-on-fail --cov-report=term --cov-config=setup.cfg ${{ matrix.pytest-options }}
pytest -vvv tests/test_example.py
- name: Check database container
# Only applicable for Postgres, but we want this to run even when tests fail
if: always()
run: >
docker container inspect postgres
&& docker container logs postgres
|| echo "Ignoring bad exit code"
|| echo "Ignoring bad exit code"

0 comments on commit 45b21e0

Please sign in to comment.