From 4ea745e6c2251cf8cd38607f78c87f6f45bd91c6 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Wed, 29 May 2024 01:08:21 +0100 Subject: [PATCH] Add --exitfirst flag to pytest --- .github/workflows/run-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index a47b301..d65fbee 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -99,7 +99,7 @@ jobs: shell: bash command: | . ~/.profile - xvfb-run --auto-servernum pytest spyder-notebook/spyder_notebook -vv + xvfb-run --auto-servernum pytest --exitfirst spyder-notebook/spyder_notebook -vv - name: Run tests (MacOS) if: matrix.OS == 'macos' uses: nick-fields/retry@v3 @@ -109,11 +109,11 @@ jobs: shell: bash command: | . ~/.profile - pytest spyder-notebook/spyder_notebook -vv + pytest --exitfirst spyder-notebook/spyder_notebook -vv - name: Run tests (Windows) if: matrix.OS == 'windows' uses: nick-fields/retry@v3 with: timeout_minutes: 10 max_attempts: 3 - command: pytest spyder-notebook/spyder_notebook -vv + command: pytest --exitfirst spyder-notebook/spyder_notebook -vv