Skip to content

Commit 06bef2f

Browse files
authored
Merge pull request #252 from awslabs/update-test-matrix
chore: remove EoL Python 3.7 from test matrix and other CI improvements
2 parents 17dc5dd + c896ab2 commit 06bef2f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
46+
uses: github/codeql-action/init@v2
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
57+
uses: github/codeql-action/autobuild@v2
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
71+
uses: github/codeql-action/analyze@v2

.github/workflows/pythonapp.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ jobs:
1717
build:
1818

1919
runs-on: ${{ matrix.os }}
20-
strategy:
20+
strategy:
2121
max-parallel: 6
22-
matrix :
22+
matrix :
2323
os: [ubuntu-latest, windows-latest, macos-latest]
24-
python-version: ['3.7', '3.8', '3.9', '3.10']
24+
python-version: ['3.8', '3.9', '3.10']
2525
steps:
2626
- uses: actions/checkout@v3
2727
- name: Set up Python ${{ matrix.python-version }}
2828
uses: actions/setup-python@v4
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131
- name: Configure AWS Credentials
32-
uses: aws-actions/configure-aws-credentials@v1
32+
uses: aws-actions/configure-aws-credentials@v4
3333
with:
3434
aws-region: us-east-2
3535
role-to-assume: arn:aws:iam::264319671630:role/GitHubActionsOidc

pyqldb/util/retry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ def calculate_backoff(retry_config, retry_attempt, error, transaction_id):
3737
def _get_delay_with_equal_jitter(retry_attempt, retry_config):
3838
capped_retries = min(retry_attempt, MAX_POW)
3939
delay_seed = min(retry_config.base * (1 << capped_retries), MAX_BACKOFF)
40-
delay = delay_seed / 2 + random.randint(0, delay_seed / 2)
40+
delay = delay_seed / 2 + random.randint(0, int(delay_seed / 2))
4141

4242
return delay

0 commit comments

Comments
 (0)