Update and clarify Python minimum version (#346) #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- '*' | |
- '!main' | |
env: | |
RUN: ${{ github.run_id }}-${{ github.run_number }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
PACKAGE_NAME: aws-iot-device-sdk-python | |
AWS_EC2_METADATA_DISABLED: true | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: Unit tests | |
run: | | |
python3 setup.py install | |
pip install pytest | |
pip install mock | |
python3 -m pytest test | |
integration-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
test-type: [ MutualAuth, Websocket, ALPN ] | |
python-version: [ '3.8', '3.13' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Integration tests | |
run: | | |
pip install pytest | |
pip install mock | |
pip install boto3 | |
python --version | |
./test-integration/run/run.sh ${{ matrix.test-type }} 1000 100 7 |