Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10','3.11','3.12']
python-version: ['3.10','3.11','3.12','3.13', '3.14']

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Install uv and set Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
activate-environment: true
- name: Execute doctests
run: |
python CamundaLibrary/CamundaResources.py -v
uv run python CamundaLibrary/CamundaResources.py -v
15 changes: 10 additions & 5 deletions .github/workflows/robot-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on: [push, pull_request]
jobs:
integrationtest:
runs-on: ubuntu-latest
container: python:3.9
container: python:3.10
strategy:
fail-fast: false
matrix:
auth_enabled: ['false', 'true']
camunda_version: ['run-7.20.0']
camunda_version: ['run-7.24.0']
services:
camunda:
image: camunda/camunda-bpm-platform:${{ matrix.camunda_version }}
Expand All @@ -20,18 +20,23 @@ jobs:
camunda.bpm.run.auth.enabled: ${{ matrix.auth_enabled }}
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: true
- name: Test with robot
run: |
pip install .
uv sync --group ci
uv pip install .
sleep 10
robot -d logs -b debug.log -x xunit.xml -L DEBUG -V tests/robot/config_cicd.py -v CAMUNDA_HOST:http://camunda:8080 tests/robot/**/*.robot
uv run robotcode -p ci robot tests/robot/**/*.robot
- name: Archive production artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: robot logs-${{matrix.camunda_version}}-${{matrix.auth_enabled}}
path: |
logs
results
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
Expand Down
16 changes: 9 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,24 @@ Integrationtests:
stage: test
parallel:
matrix:
- CAMUNDA_VERSION: run-7.14.0
- CAMUNDA_VERSION: run-7.15.0
- CAMUNDA_VERSION: run-7.16.0
- CAMUNDA_VERSION: run-7.24.0
- CAMUNDA_VERSION: run-7.23.0
- CAMUNDA_VERSION: run-7.22.0
services:
- name: camunda/camunda-bpm-platform:${CAMUNDA_VERSION}
alias: camunda
before_script:
- pip install .
- pip install uv
- uv sync --group ci
- uv pip install .
script:
- robot -L DEBUG -b console -d output -x xunit.xml -V tests/robot/config_cicd.py -v CAMUNDA_HOST:http://camunda:8080 tests/robot/**/test*.robot
- uv run robotcode -p dryrun -p ci robot tests/robot/**/test*.robot
artifacts:
expire_in: 1 week
paths:
- output
- results
reports:
junit: output/xunit.xml
junit: results/xunit.xml
when: always


Expand Down
39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[project]
name = "robotframework-camunda"
version = "2.0.3"
description = "Keywords for camunda rest api, leading open source workflow engine."
readme = "README.md"
requires-python = ">=3.10"
license-files = ["LICENSE"]
authors = [{ name = "Markus", email = "markus.i.sverige@googlemail.com" }]
keywords = ["robotframework", "camunda", "automation", "testing", "bpm"]
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Framework :: Robot Framework :: Library",
]
dependencies = [
"robotframework>=3.2",
"generic-camunda-client>=7.15.0",
"requests",
"requests_toolbelt",
"url-normalize",
]

[tool.setuptools.packages.find]
include = ["CamundaLibrary"]
exclude = ["tests*", "libdoc*"]

[project.urls]
Homepage = "https://github.com/MarketSquare/robotframework-camunda"
Repository = "https://github.com/MarketSquare/robotframework-camunda.git"

[dependency-groups]
ci = ["robotcode-runner>=2.2.0"]
dev = ["robotcode>=2.2.0", "robotframework-robocop>=7.2.0"]
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

17 changes: 17 additions & 0 deletions robot.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
variable-files = ["tests/robot/config.py"]
xunit = "xunit.xml"
debug-file = "debug.log"
log-level = "TRACE:INFO"

[variables]
CAMUNDA_HOST = "http://localhost:8080"

[profiles.ci]
variable-files = ["tests/robot/config_cicd.py"]
log-level = "DEBUG:WARN"

[profiles.ci.variables]
CAMUNDA_HOST = "http://camunda:8080"

[profiles.dryrun]
dry-run = true
53 changes: 0 additions & 53 deletions setup.py

This file was deleted.

18 changes: 9 additions & 9 deletions tests/robot/Decision/test_evaluate_decision.robot
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
*** Settings ***
Library CamundaLibrary
Library Collections
Suite Setup Set Camunda Configuration ${configuration}
Library CamundaLibrary
Library Collections

Suite Setup Set Camunda Configuration ${configuration}


*** Variables ***
${CAMUNDA_HOST} http://localhost:8080
${DMN_KEY} demo_decision
${DECISIONS} ${EMPTY}
${DMN_KEY} demo_decision
${DECISIONS} ${EMPTY}


*** Test Cases ***
Expand Down Expand Up @@ -40,7 +40,7 @@ Request Decision
${infos} Create Dictionary married=${married}
${variables} Create Dictionary
... firstname ${firstname}
... age ${age}
... age ${age}
... infos ${infos}
${response} Evaluate Decision
... ${DMN_KEY}
Expand All @@ -50,5 +50,5 @@ Request Decision
Decision Will Be Correct
Log ${DECISIONS}
Should Be Equal As Integers 3001001001 ${DECISIONS}[0][0][level]
Should Be Equal As Integers 0 ${DECISIONS}[1][0][level]
Should Be Equal As Integers -1 ${DECISIONS}[2][0][level]
Should Be Equal As Integers 0 ${DECISIONS}[1][0][level]
Should Be Equal As Integers -1 ${DECISIONS}[2][0][level]
Loading
Loading