From d05b4ae7bcd19296e8919eca123343802f1d4f86 Mon Sep 17 00:00:00 2001 From: ArthurDeclercq Date: Tue, 3 Dec 2024 17:06:23 +0100 Subject: [PATCH] test worklfow error --- .github/workflows/test.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7e07bc..e91c4fa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,25 +3,28 @@ name: Test and Lint Workflow on: push: branches: - - '*' + - '*' pull_request: branches: - - main + - main jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.10, 3.11, 3.12] steps: # Checkout the code from the repository - name: Checkout code uses: actions/checkout@v3 - # Set up Python environment - - name: Set up Python 3.10 + # Set up Python environment for each version in the matrix + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: - python-version: [3.10, 3.11, 3.12] + python-version: ${{ matrix.python-version }} # Install dependencies - name: Install dependencies @@ -45,4 +48,4 @@ jobs: - name: Run tests with pytest run: | pip install pytest - pytest --disable-warnings -q + pytest --maxfail=1 --disable-warnings -q