From da75321eff07134221aac4073c033e4bde645326 Mon Sep 17 00:00:00 2001 From: whotwagner Date: Thu, 22 Jan 2026 14:41:36 +0100 Subject: [PATCH 1/4] Update workflow steps for DetectMateService preparation --- .github/workflows/python-app.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index f9804fc..4730bbd 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -42,13 +42,12 @@ jobs: repository: ait-detectmate/DetectMateService path: DetectMateService - - name: Install DetectMateService (using local DetectMateLibrary) + - name: Prepare DetectMateService (using local DetectMateLibrary) working-directory: DetectMateService run: | # remove the git-based dependency so we don't override the local lib sed -i '/detectmatelibrary @ git+/d' pyproject.toml - uv pip install .[dev] - name: Run DetectMateService library integration tests working-directory: DetectMateService - run: uv run pytest tests/library_integration + run: uv run --dev pytest tests/library_integration From 8f6d2b2e4e25b66645a8debba0348d4bbf8e8619 Mon Sep 17 00:00:00 2001 From: whotwagner Date: Thu, 22 Jan 2026 22:07:09 +0000 Subject: [PATCH 2/4] Change activate-environment to false in workflow --- .github/workflows/python-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 4730bbd..4845ce3 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -20,7 +20,7 @@ jobs: uses: astral-sh/setup-uv@v6.6.0 with: python-version: "3.12" - activate-environment: true + activate-environment: false enable-cache: true - name: Set timezone From 223023445daf879b3eb412ffae63be0480e410f3 Mon Sep 17 00:00:00 2001 From: whotwagner Date: Thu, 22 Jan 2026 23:11:15 +0100 Subject: [PATCH 3/4] fixed uv-start in ci-pipe --- .github/workflows/python-app.yml | 7 ++----- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 4845ce3..c83bbba 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -26,14 +26,11 @@ jobs: - name: Set timezone run: sudo timedatectl set-timezone Europe/Vienna - - name: Install project deps - run: uv pip install .[dev] - - name: Run pre-commit with prek - run: uv run prek run -a + run: uv run --dev prek run -a - name: Test with pytest - run: uv run pytest + run: uv run --dev pytest # integration tests for DetectMateService - name: Checkout DetectMateService diff --git a/pyproject.toml b/pyproject.toml index 47c8bde..286ccda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ dependencies = [ "kafka-python>=2.3.0", ] -[project.optional-dependencies] +[dependency-groups] # add dependencies in this section with: uv add --optional dev # install with all the dev dependencies: uv pip install -e .[dev] dev = [ From 01178c7dd1522ee5001331ebccdff84e6c50d4d7 Mon Sep 17 00:00:00 2001 From: whotwagner Date: Thu, 22 Jan 2026 23:58:03 +0100 Subject: [PATCH 4/4] fixed uv-start in ci-pipe --- .github/workflows/python-app.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index c83bbba..e86f96b 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -20,7 +20,7 @@ jobs: uses: astral-sh/setup-uv@v6.6.0 with: python-version: "3.12" - activate-environment: false + activate-environment: true enable-cache: true - name: Set timezone @@ -45,6 +45,10 @@ jobs: # remove the git-based dependency so we don't override the local lib sed -i '/detectmatelibrary @ git+/d' pyproject.toml + - name: Prepare packages + working-directory: DetectMateService + run: uv pip install . + - name: Run DetectMateService library integration tests working-directory: DetectMateService - run: uv run --dev pytest tests/library_integration + run: pytest tests/library_integration