|
| 1 | +name: Continuous Integration tests |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + # Run once a day |
| 7 | + schedule: |
| 8 | + - cron: '0 0 * * *' |
| 9 | + |
| 10 | +env: |
| 11 | + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: | |
| 12 | + arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f |
| 13 | + AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: | |
| 14 | + arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 |
| 15 | +
|
| 16 | +jobs: |
| 17 | + tests: |
| 18 | + runs-on: ${{ matrix.os }} |
| 19 | + strategy: |
| 20 | + fail-fast: true |
| 21 | + matrix: |
| 22 | + os: |
| 23 | + - ubuntu-latest |
| 24 | + - windows-latest |
| 25 | + - macos-latest |
| 26 | + python: |
| 27 | + - 2.7 |
| 28 | + - 3.5 |
| 29 | + - 3.6 |
| 30 | + - 3.7 |
| 31 | + - 3.8 |
| 32 | + - 3.x |
| 33 | + architecture: |
| 34 | + - x64 |
| 35 | + - x86 |
| 36 | + category: |
| 37 | + - local |
| 38 | + - accept |
| 39 | +# These require credentials. |
| 40 | +# Enable them once we sort how to provide them. |
| 41 | +# - integ |
| 42 | +# - examples |
| 43 | + exclude: |
| 44 | + # x86 builds are only meaningful for Windows |
| 45 | + - os: ubuntu-latest |
| 46 | + architecture: x86 |
| 47 | + - os: macos-latest |
| 48 | + architecture: x86 |
| 49 | + steps: |
| 50 | + - uses: actions/checkout@v2 |
| 51 | + - uses: actions/setup-python@v1 |
| 52 | + with: |
| 53 | + python-version: ${{ matrix.python }} |
| 54 | + architecture: ${{ matrix.architecture }} |
| 55 | + - run: | |
| 56 | + python -m pip install --upgrade pip |
| 57 | + pip install --upgrade -r ci-requirements.txt |
| 58 | + - name: run test |
| 59 | + env: |
| 60 | + TOXENV: ${{ matrix.category }} |
| 61 | + run: tox -- -vv |
| 62 | + upstream-py3: |
| 63 | + runs-on: ubuntu-latest |
| 64 | + strategy: |
| 65 | + fail-fast: true |
| 66 | + matrix: |
| 67 | + category: |
| 68 | + - nocmk |
| 69 | + - test-upstream-requirements-py37 |
| 70 | + steps: |
| 71 | + - uses: actions/checkout@v2 |
| 72 | + - uses: actions/setup-python@v1 |
| 73 | + with: |
| 74 | + python-version: 3.7 |
| 75 | + - run: | |
| 76 | + python -m pip install --upgrade pip |
| 77 | + pip install --upgrade -r ci-requirements.txt |
| 78 | + - name: run test |
| 79 | + env: |
| 80 | + TOXENV: ${{ matrix.category }} |
| 81 | + run: tox -- -vv |
| 82 | + upstream-py2: |
| 83 | + runs-on: ubuntu-latest |
| 84 | + strategy: |
| 85 | + fail-fast: true |
| 86 | + matrix: |
| 87 | + category: |
| 88 | + - test-upstream-requirements-py27 |
| 89 | + steps: |
| 90 | + - uses: actions/checkout@v2 |
| 91 | + - uses: actions/setup-python@v1 |
| 92 | + with: |
| 93 | + python-version: 2.7 |
| 94 | + - run: | |
| 95 | + python -m pip install --upgrade pip |
| 96 | + pip install --upgrade -r ci-requirements.txt |
| 97 | + - name: run test |
| 98 | + env: |
| 99 | + TOXENV: ${{ matrix.category }} |
| 100 | + run: tox -- -vv |
0 commit comments