File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : AWS CodeBuild CI
22
33on :
4- pull_request :
54 push :
65 # Run once a day
76 schedule :
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 }}
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
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 }}
Original file line number Diff line number Diff line change @@ -4,9 +4,13 @@ name: Daily CI
44on :
55 schedule :
66 - cron : " 00 15 * * 1-5"
7+ pull_request :
8+ paths :
9+ .github/workflows/daily_ci.yml
710
811permissions :
912 contents : read
13+ id-token : write
1014
1115jobs :
1216 codebuild_batch :
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ name: Pull Request Workflow
33on :
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+
612permissions :
713 id-token : write
814 contents : read
Original file line number Diff line number Diff line change 11mock
2- pytest >= 3.3.1
2+ pytest >= 8.4.2
33pytest-cov
4- pytest-mock
4+ pytest-mock >= 3.14.0
55requests
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ commands = seed-isort-config
233233[testenv:isort]
234234basepython = python3
235235deps = isort
236- commands = isort -rc \
236+ commands = isort \
237237 src \
238238 test \
239239 # doc \
Original file line number Diff line number Diff line change 11mock==4.0.3
2- pytest==7.2.1
2+ pytest==8.0.0
33pytest-cov==4.0.0
44pytest-mock==3.6.1
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ commands = seed-isort-config
128128[testenv:isort]
129129basepython = python3
130130deps = -r../dev_requirements/linter-requirements.txt
131- commands = isort -rc \
131+ commands = isort \
132132 src \
133133 test \
134134 setup.py \
Original file line number Diff line number Diff line change 22# SPDX-License-Identifier: Apache-2.0
33"""Unit test suite for aws_encryption_sdk.compatability"""
44import sys
5+ import warnings
56
67import mock
78import 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
You can’t perform that action at this time.
0 commit comments