From 59694e4ff9f0e83cc5a02e9d3bc7ea11976bfa3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Oberd=C3=B6rfer?= Date: Fri, 18 Jul 2025 10:16:27 +0200 Subject: [PATCH] Update CI Python versions --- .github/workflows/publish.yml | 8 ++++---- .github/workflows/test.yml | 4 ++-- QLog/azure_system_logger.py | 4 ++-- QLog/system_logger.py | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 36fca6b..79d69d2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ 3.7, 3.8 ] + python-version: [ 3.10, 3.11 ] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ 3.7, 3.8 ] + python-version: [ 3.10, 3.11 ] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -53,10 +53,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.11 uses: actions/setup-python@v1 with: - python-version: 3.8 + python-version: 3.11 - name: Install twine run: pip install twine wheel - name: Build package diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 676c8cb..5525017 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ 3.7, 3.8 ] + python-version: [ 3.10, 3.11 ] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ 3.7, 3.8 ] + python-version: [ 3.10, 3.11 ] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} diff --git a/QLog/azure_system_logger.py b/QLog/azure_system_logger.py index 711ab9c..4bd6d19 100644 --- a/QLog/azure_system_logger.py +++ b/QLog/azure_system_logger.py @@ -14,9 +14,9 @@ def __init__(self, log_level=LogLevel.INFO): self.log_level = log_level if self.log_level is LogLevel.INFO: logging.getLogger().setLevel(logging.INFO) - if self.log_level is LogLevel.WARNING: + elif self.log_level is LogLevel.WARNING: logging.getLogger().setLevel(logging.WARNING) - if self.log_level is LogLevel.ERROR: + elif self.log_level is LogLevel.ERROR: logging.getLogger().setLevel(logging.ERROR) else: logging.getLogger().setLevel(logging.DEBUG) diff --git a/QLog/system_logger.py b/QLog/system_logger.py index 8d81d85..12445b2 100644 --- a/QLog/system_logger.py +++ b/QLog/system_logger.py @@ -14,9 +14,9 @@ def __init__(self, log_level=LogLevel.INFO): self.log_level = log_level if self.log_level is LogLevel.INFO: logging.getLogger().setLevel(logging.INFO) - if self.log_level is LogLevel.WARNING: + elif self.log_level is LogLevel.WARNING: logging.getLogger().setLevel(logging.WARNING) - if self.log_level is LogLevel.ERROR: + elif self.log_level is LogLevel.ERROR: logging.getLogger().setLevel(logging.ERROR) else: logging.getLogger().setLevel(logging.DEBUG)