Skip to content
Open
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
22 changes: 11 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.7, 3.8 ]
python-version: [ 3.11 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pylint
Expand All @@ -32,31 +32,31 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.7, 3.8 ]
python-version: [ 3.11 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pytest
run: pip install pytest-cov
- name: Test with pytest
run: pytest -v --doctest-modules --cov=./
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true

publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.11
- name: Install twine
run: pip install twine wheel
- name: Build package
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.7, 3.8 ]
python-version: [ 3.11 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pylint
Expand All @@ -32,18 +32,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.7, 3.8 ]
python-version: [ 3.11 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pytest
run: pip install pytest-cov
- name: Test with pytest
run: pytest -v --doctest-modules --cov=./
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
4 changes: 2 additions & 2 deletions QLog/azure_system_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions QLog/system_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading