|
22 | 22 | CACHED_BUILD_PATHS: |
|
23 | 23 | ${{ github.workspace }}/dist-serverless
|
24 | 24 | jobs:
|
25 |
| - test-cloud-latest: |
26 |
| - name: Cloud (latest) |
27 |
| - timeout-minutes: 30 |
28 |
| - runs-on: ${{ matrix.os }} |
29 |
| - strategy: |
30 |
| - fail-fast: false |
31 |
| - matrix: |
32 |
| - python-version: ["3.8","3.12","3.13"] |
33 |
| - # python3.6 reached EOL and is no longer being supported on |
34 |
| - # new versions of hosted runners on Github Actions |
35 |
| - # ubuntu-20.04 is the last version that supported python3.6 |
36 |
| - # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877 |
37 |
| - os: [ubuntu-22.04] |
38 |
| - services: |
39 |
| - docker: |
40 |
| - image: docker:dind # Required for Docker network management |
41 |
| - options: --privileged # Required for Docker-in-Docker operations |
42 |
| - # Use Docker container only for Python 3.6 |
43 |
| - container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }} |
44 |
| - steps: |
45 |
| - |
46 |
| - - uses: actions/setup-python@v5 |
47 |
| - if: ${{ matrix.python-version != '3.6' }} |
48 |
| - with: |
49 |
| - python-version: ${{ matrix.python-version }} |
50 |
| - allow-prereleases: true |
51 |
| - - name: Setup Test Env |
52 |
| - run: | |
53 |
| - pip install "coverage[toml]" tox |
54 |
| - - name: Erase coverage |
55 |
| - run: | |
56 |
| - coverage erase |
57 |
| - - name: Test aws_lambda latest |
58 |
| - run: | |
59 |
| - set -x # print commands that are executed |
60 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda-latest" |
61 |
| - - name: Test boto3 latest |
62 |
| - run: | |
63 |
| - set -x # print commands that are executed |
64 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" |
65 |
| - - name: Test chalice latest |
66 |
| - run: | |
67 |
| - set -x # print commands that are executed |
68 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" |
69 |
| - - name: Test cloud_resource_context latest |
70 |
| - run: | |
71 |
| - set -x # print commands that are executed |
72 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" |
73 |
| - - name: Test gcp latest |
74 |
| - run: | |
75 |
| - set -x # print commands that are executed |
76 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" |
77 |
| - - name: Generate coverage XML (Python 3.6) |
78 |
| - if: ${{ !cancelled() && matrix.python-version == '3.6' }} |
79 |
| - run: | |
80 |
| - export COVERAGE_RCFILE=.coveragerc36 |
81 |
| - coverage combine .coverage-sentry-* |
82 |
| - coverage xml --ignore-errors |
83 |
| - - name: Generate coverage XML |
84 |
| - if: ${{ !cancelled() && matrix.python-version != '3.6' }} |
85 |
| - run: | |
86 |
| - coverage combine .coverage-sentry-* |
87 |
| - coverage xml |
88 |
| - - name: Upload coverage to Codecov |
89 |
| - if: ${{ !cancelled() }} |
90 |
| - |
91 |
| - with: |
92 |
| - token: ${{ secrets.CODECOV_TOKEN }} |
93 |
| - files: coverage.xml |
94 |
| - # make sure no plugins alter our coverage reports |
95 |
| - plugins: noop |
96 |
| - verbose: true |
97 |
| - - name: Upload test results to Codecov |
98 |
| - if: ${{ !cancelled() }} |
99 |
| - uses: codecov/test-results-action@v1 |
100 |
| - with: |
101 |
| - token: ${{ secrets.CODECOV_TOKEN }} |
102 |
| - files: .junitxml |
103 |
| - verbose: true |
104 | 25 | test-cloud-pinned:
|
105 | 26 | name: Cloud (pinned)
|
106 | 27 | timeout-minutes: 30
|
|
0 commit comments