Skip to content

Commit 113afc8

Browse files
committed
Update GitHub Actions
1 parent 3854585 commit 113afc8

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [ 3.7, 3.8 ]
18+
python-version: [ 3.10, 3.11 ]
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v1
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install pylint
@@ -32,31 +32,31 @@ jobs:
3232
runs-on: ubuntu-latest
3333
strategy:
3434
matrix:
35-
python-version: [ 3.7, 3.8 ]
35+
python-version: [ 3.10, 3.11 ]
3636
steps:
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
3838
- name: Set up Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v1
39+
uses: actions/setup-python@v5
4040
with:
4141
python-version: ${{ matrix.python-version }}
4242
- name: Install pytest
4343
run: pip install pytest-cov
4444
- name: Test with pytest
4545
run: pytest -v --doctest-modules --cov=./
4646
- name: Upload coverage to Codecov
47-
uses: codecov/codecov-action@v1
47+
uses: codecov/codecov-action@v5
4848
with:
4949
fail_ci_if_error: true
5050

5151
publish:
5252
needs: test
5353
runs-on: ubuntu-latest
5454
steps:
55-
- uses: actions/checkout@v2
56-
- name: Set up Python 3.8
57-
uses: actions/setup-python@v1
55+
- uses: actions/checkout@v4
56+
- name: Set up Python 3.11
57+
uses: actions/setup-python@v5
5858
with:
59-
python-version: 3.8
59+
python-version: 3.11
6060
- name: Install twine
6161
run: pip install twine wheel
6262
- name: Build package

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [ 3.7, 3.8 ]
18+
python-version: [ 3.10, 3.11 ]
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v1
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install pylint
@@ -32,18 +32,18 @@ jobs:
3232
runs-on: ubuntu-latest
3333
strategy:
3434
matrix:
35-
python-version: [ 3.7, 3.8 ]
35+
python-version: [ 3.10, 3.11 ]
3636
steps:
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
3838
- name: Set up Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v1
39+
uses: actions/setup-python@v5
4040
with:
4141
python-version: ${{ matrix.python-version }}
4242
- name: Install pytest
4343
run: pip install pytest-cov
4444
- name: Test with pytest
4545
run: pytest -v --doctest-modules --cov=./
4646
- name: Upload coverage to Codecov
47-
uses: codecov/codecov-action@v1
47+
uses: codecov/codecov-action@v5
4848
with:
4949
fail_ci_if_error: true

QLog/azure_system_logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def __init__(self, log_level=LogLevel.INFO):
1414
self.log_level = log_level
1515
if self.log_level is LogLevel.INFO:
1616
logging.getLogger().setLevel(logging.INFO)
17-
if self.log_level is LogLevel.WARNING:
17+
elif self.log_level is LogLevel.WARNING:
1818
logging.getLogger().setLevel(logging.WARNING)
19-
if self.log_level is LogLevel.ERROR:
19+
elif self.log_level is LogLevel.ERROR:
2020
logging.getLogger().setLevel(logging.ERROR)
2121
else:
2222
logging.getLogger().setLevel(logging.DEBUG)

QLog/system_logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def __init__(self, log_level=LogLevel.INFO):
1414
self.log_level = log_level
1515
if self.log_level is LogLevel.INFO:
1616
logging.getLogger().setLevel(logging.INFO)
17-
if self.log_level is LogLevel.WARNING:
17+
elif self.log_level is LogLevel.WARNING:
1818
logging.getLogger().setLevel(logging.WARNING)
19-
if self.log_level is LogLevel.ERROR:
19+
elif self.log_level is LogLevel.ERROR:
2020
logging.getLogger().setLevel(logging.ERROR)
2121
else:
2222
logging.getLogger().setLevel(logging.DEBUG)

0 commit comments

Comments
 (0)