Skip to content

Commit 20ec402

Browse files
chore(CI): fix CI (#785)
1 parent b441d84 commit 20ec402

13 files changed

Lines changed: 260 additions & 85 deletions

File tree

.github/workflows/ci_codebuild-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: AWS CodeBuild CI
22

33
on:
4-
pull_request:
54
push:
65
# Run once a day
76
schedule:
@@ -47,7 +46,7 @@ jobs:
4746
role-duration-seconds: 7200
4847
- name: Run python-${{ matrix.python.python_version }} ${{ matrix.codebuild_file_name }}
4948
uses: aws-actions/aws-codebuild-run-build@v1
50-
timeout-minutes: 120
49+
timeout-minutes: 150
5150
with:
5251
project-name: python-esdk
5352
buildspec-override: codebuild/py${{ matrix.python.python_version }}/${{ matrix.codebuild_file_name }}

.github/workflows/ci_test-vector-handler.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jobs:
2424
os:
2525
- ubuntu-latest
2626
- windows-latest
27-
- macos-13
27+
- macos-latest
28+
# runs on macos-15-intel as macos-latest does not work in all python versions.
29+
- macos-15-intel
2830
python:
2931
- 3.8
3032
- 3.x
@@ -39,7 +41,7 @@ jobs:
3941
# x86 builds are only meaningful for Windows
4042
- os: ubuntu-latest
4143
architecture: x86
42-
- os: macos-13
44+
- os: macos-latest
4345
architecture: x86
4446
steps:
4547
- uses: aws-actions/configure-aws-credentials@v4

.github/workflows/ci_tests.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
os:
2626
- ubuntu-latest
2727
- windows-latest
28-
- macos-13
28+
- macos-latest
2929
python:
3030
- 3.8
3131
- 3.9
@@ -50,11 +50,23 @@ jobs:
5050
- ""
5151
- -mpl
5252
exclude:
53+
# Python <3.11 incompatible with macOS ARM64 runners
54+
# https://github.com/actions/setup-python/issues/948
55+
- python: 3.7
56+
os: macos-latest
57+
- python: 3.8
58+
os: macos-latest
59+
- python: 3.9
60+
os: macos-latest
61+
- python: 3.10
62+
os: macos-latest
63+
5364
# x86 builds are only meaningful for Windows
5465
- os: ubuntu-latest
5566
architecture: x86
56-
- os: macos-13
67+
- os: macos-latest
5768
architecture: x86
69+
5870
# MPL is not supported on <3.11
5971
- python: 3.7
6072
optional_mpl_dependency: -mpl
@@ -74,6 +86,7 @@ jobs:
7486
git config --global core.longpaths true
7587
7688
- uses: actions/checkout@v4
89+
7790
- uses: actions/setup-python@v4
7891
with:
7992
python-version: ${{ matrix.python }}

.github/workflows/daily_ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ name: Daily CI
44
on:
55
schedule:
66
- cron: "00 15 * * 1-5"
7+
pull_request:
8+
paths:
9+
.github/workflows/daily_ci.yml
710

811
permissions:
912
contents: read
13+
id-token: write
1014

1115
jobs:
1216
codebuild_batch:

.github/workflows/pull.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Pull Request Workflow
33
on:
44
pull_request:
55

6+
# Concurrency control helps avoid CodeBuild throttling.
7+
# When new commits are pushed, the previous workflow run is cancelled.
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
612
permissions:
713
id-token: write
814
contents: read
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mock
2-
pytest>=3.3.1
2+
pytest>=8.4.2
33
pytest-cov
4-
pytest-mock
4+
pytest-mock>=3.14.0
55
requests

decrypt_oracle/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ commands = seed-isort-config
233233
[testenv:isort]
234234
basepython = python3
235235
deps = isort
236-
commands = isort -rc \
236+
commands = isort \
237237
src \
238238
test \
239239
#doc \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
mock==4.0.3
2-
pytest==7.2.1
2+
pytest==8.0.0
33
pytest-cov==4.0.0
44
pytest-mock==3.6.1

performance_tests/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ commands = seed-isort-config
128128
[testenv:isort]
129129
basepython = python3
130130
deps = -r../dev_requirements/linter-requirements.txt
131-
commands = isort -rc \
131+
commands = isort \
132132
src \
133133
test \
134134
setup.py \

test/unit/test_compatability.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33
"""Unit test suite for aws_encryption_sdk.compatability"""
44
import sys
5+
import warnings
56

67
import mock
78
import pytest
@@ -16,7 +17,8 @@ def test_happy_version(self):
1617
with mock.patch.object(sys, "version_info") as v_info:
1718
v_info.major = 3
1819
v_info.minor = 6
19-
with pytest.warns(None) as record:
20+
with warnings.catch_warnings(record=True) as record:
21+
warnings.simplefilter("always")
2022
_warn_deprecated_python()
2123
assert len(record) == 0
2224

0 commit comments

Comments
 (0)