diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 1ca8a01..2614965 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -9,6 +9,7 @@ on: [push, pull_request] jobs: build: + runs-on: ubuntu-latest strategy: matrix: @@ -32,3 +33,6 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest diff --git a/README.md b/README.md index cedb33e..735c499 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: - API version: 2.6.12 - Package version: 2.6.12 -- Generator version: 7.5.0 +- Generator version: 7.6.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://eliona.io](https://eliona.io) diff --git a/eliona/api_client2/models/alarm_priority.py b/eliona/api_client2/models/alarm_priority.py index 8f919aa..d67daad 100644 --- a/eliona/api_client2/models/alarm_priority.py +++ b/eliona/api_client2/models/alarm_priority.py @@ -27,10 +27,10 @@ class AlarmPriority(int, Enum): """ allowed enum values """ - NUMBER_1 = 1 - NUMBER_2 = 2 - NUMBER_3 = 3 - NUMBER_10 = 10 + ALARM_PRIORITY_HEIGHT = 1 + ALARM_PRIORITY_MEDIUM = 2 + ALARM_PRIORITY_LOW = 3 + ALARM_PRIORITY_INFO = 10 @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/generate.cmd b/generate.cmd index 3dfe3a5..5368fa0 100644 --- a/generate.cmd +++ b/generate.cmd @@ -1,6 +1,6 @@ docker run --rm ^ -v "%cd%":/local ^ - openapitools/openapi-generator-cli:v7.5.0 ^ + openapitools/openapi-generator-cli:v7.6.0 ^ generate ^ -g python ^ --git-user-id eliona-smart-building-assistant ^ diff --git a/generate.sh b/generate.sh index fcacc86..7d3afef 100755 --- a/generate.sh +++ b/generate.sh @@ -1,6 +1,6 @@ docker run --rm \ -v "${PWD}:/local" \ - openapitools/openapi-generator-cli:v7.5.0 \ + openapitools/openapi-generator-cli:v7.6.0 \ generate \ -g python \ --git-user-id eliona-smart-building-assistant \