From 74a3c82c00e9e6ed8bb252154080cde9858f9d81 Mon Sep 17 00:00:00 2001 From: glavic_a Date: Tue, 24 Feb 2026 15:21:49 +0100 Subject: [PATCH 01/12] .github/workflows/unit_tests.yml aktualisiert Changer runner for unit tests --- .github/workflows/unit_tests.yml | 76 ++++++++++++++++---------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index b82e3be..2a78202 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1,38 +1,38 @@ -name: Unit Testing - -on: - push: - branches: - - main - pull_request: - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -jobs: - test: - - runs-on: ubuntu-22.04 - strategy: - matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] - fail-fast: false - - steps: - - uses: actions/checkout@v4 - with: - lfs: 'true' - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pytest - pip install -r requirements.txt - - - name: Test with pytest - run: | - python -m pytest tests +name: Unit Testing + +on: + push: + branches: + - main + pull_request: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + fail-fast: false + + steps: + - uses: actions/checkout@v4 + with: + lfs: 'true' + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest + pip install -r requirements.txt + + - name: Test with pytest + run: | + python -m pytest tests -- 2.49.1 From aeece30fc5cc6a0dadd6c1d28f6ffcb807f58523 Mon Sep 17 00:00:00 2001 From: bruhn_b Date: Thu, 26 Feb 2026 13:12:16 +0100 Subject: [PATCH 02/12] Update .github/workflows/unit_tests.yml --- .github/workflows/unit_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 2a78202..a7659f1 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -22,6 +22,7 @@ jobs: - uses: actions/checkout@v4 with: lfs: 'true' + token: ${{ secrets.CICD }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: -- 2.49.1 From b89956beecbb0f18c0bc1feca1d71f65d89008a7 Mon Sep 17 00:00:00 2001 From: bruhn_b Date: Thu, 26 Feb 2026 13:18:05 +0100 Subject: [PATCH 03/12] Update .github/workflows/unit_tests.yml --- .github/workflows/unit_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index a7659f1..dd7acd5 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -3,7 +3,7 @@ name: Unit Testing on: push: branches: - - main + - gitea_actions pull_request: # Allows you to run this workflow manually from the Actions tab -- 2.49.1 From a358e1f8f899b3341f19421672311baf4a0653aa Mon Sep 17 00:00:00 2001 From: bruhn_b Date: Thu, 26 Feb 2026 13:22:51 +0100 Subject: [PATCH 04/12] Update .github/workflows/unit_tests.yml --- .github/workflows/unit_tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index dd7acd5..a076ca2 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -3,7 +3,7 @@ name: Unit Testing on: push: branches: - - gitea_actions + - main pull_request: # Allows you to run this workflow manually from the Actions tab @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 with: lfs: 'true' - token: ${{ secrets.CICD }} + token: ${{ gitea.token }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: -- 2.49.1 From 0f5d92fbb253f224012d0be0174b7a2bddd5645b Mon Sep 17 00:00:00 2001 From: bruhn_b Date: Thu, 26 Feb 2026 13:26:04 +0100 Subject: [PATCH 05/12] Update .github/workflows/unit_tests.yml --- .github/workflows/unit_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index a076ca2..a7659f1 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 with: lfs: 'true' - token: ${{ gitea.token }} + token: ${{ secrets.CICD }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: -- 2.49.1 From c069e7d646edd1280f112e36b0e09ed798440291 Mon Sep 17 00:00:00 2001 From: bruhn_b Date: Thu, 26 Feb 2026 13:34:47 +0100 Subject: [PATCH 06/12] Update .github/workflows/unit_tests.yml --- .github/workflows/unit_tests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index a7659f1..bbcac78 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -19,10 +19,9 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: lfs: 'true' - token: ${{ secrets.CICD }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: -- 2.49.1 From 6c80f6817c236fb888cb3cbb613d1e8e76a78934 Mon Sep 17 00:00:00 2001 From: bruhn_b Date: Thu, 26 Feb 2026 13:38:03 +0100 Subject: [PATCH 07/12] Update .github/workflows/unit_tests.yml --- .github/workflows/unit_tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index bbcac78..f7647d4 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -19,9 +19,9 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v6 - with: - lfs: 'true' + - name: Checkout LFS objects + run: git clone https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git . + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: -- 2.49.1 From 8969ac98fcac93a6112b8fd4a617ddea8ee53cf9 Mon Sep 17 00:00:00 2001 From: Artur Glavic Date: Thu, 26 Feb 2026 13:41:34 +0100 Subject: [PATCH 08/12] Update testing config in release --- .github/workflows/release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6929cec..3b43fc3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,16 +24,15 @@ on: jobs: test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: matrix: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] fail-fast: false steps: - - uses: actions/checkout@v4 - with: - lfs: 'true' + - name: Checkout LFS objects + run: git clone https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git . - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: -- 2.49.1 From 48e639b79d6ac14a2404a5994c918026d9707833 Mon Sep 17 00:00:00 2001 From: Artur Glavic Date: Thu, 26 Feb 2026 14:11:21 +0100 Subject: [PATCH 09/12] Try to fix failing tests by using venv within test runner --- .github/workflows/unit_tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index f7647d4..9f410f1 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] fail-fast: false steps: @@ -29,6 +29,9 @@ jobs: - name: Install dependencies run: | + python -m venv testenv + source testenv/bin/activate + python -m pip install --upgrade pip pip install pytest pip install -r requirements.txt -- 2.49.1 From bf1d39ededed38a0f0a9774de5a02a2a5a364e3e Mon Sep 17 00:00:00 2001 From: Artur Glavic Date: Thu, 26 Feb 2026 14:19:54 +0100 Subject: [PATCH 10/12] check which pytest config causes the crash --- .github/workflows/unit_tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 9f410f1..b5b800f 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -29,13 +29,14 @@ jobs: - name: Install dependencies run: | - python -m venv testenv - source testenv/bin/activate - python -m pip install --upgrade pip pip install pytest pip install -r requirements.txt + - name: Log pytest config + run: | + pytest --trace-config + - name: Test with pytest run: | python -m pytest tests -- 2.49.1 From 7b54c65410b62fa48448d28c51c5b2b534cc02cf Mon Sep 17 00:00:00 2001 From: Artur Glavic Date: Thu, 26 Feb 2026 14:27:27 +0100 Subject: [PATCH 11/12] Try installing the module that fails in pytest --- .github/workflows/unit_tests.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index b5b800f..a50b998 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -32,10 +32,7 @@ jobs: python -m pip install --upgrade pip pip install pytest pip install -r requirements.txt - - - name: Log pytest config - run: | - pytest --trace-config + pip install bec-ipython-client - name: Test with pytest run: | -- 2.49.1 From a6d6b482e2c36739141b3800546a0ab50500572f Mon Sep 17 00:00:00 2001 From: Artur Glavic Date: Thu, 26 Feb 2026 14:30:56 +0100 Subject: [PATCH 12/12] Just remove python versions that fail --- .github/workflows/release.yml | 4 ++-- .github/workflows/unit_tests.yml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b43fc3..a513c84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.8', '3.9', '3.10', '3.12'] fail-fast: false steps: @@ -59,7 +59,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index a50b998..05395e5 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.8', '3.9', '3.10', '3.12'] fail-fast: false steps: @@ -32,7 +32,6 @@ jobs: python -m pip install --upgrade pip pip install pytest pip install -r requirements.txt - pip install bec-ipython-client - name: Test with pytest run: | -- 2.49.1