language: python
cache: pip
dist: focal
matrix:
  include:
    - os: linux
      python: "3.6"
      env: UAMQP_ENV=LINUX36
      script:
        - pytest
        - python ./setup.py check -r -s
        - pylint --extension-pkg-whitelist=uamqp.c_uamqp uamqp
    - os: linux
      python: "3.7"
      env: UAMQP_ENV=LINUX37
      script:
        - pytest
        - python ./setup.py check -r -s
        - pylint --extension-pkg-whitelist=uamqp.c_uamqp uamqp
    - os: linux
      python: "3.8"
      env: UAMQP_ENV=LINUX38
      script:
        - pytest
        - python ./setup.py check -r -s
        - pylint --extension-pkg-whitelist=uamqp.c_uamqp uamqp
    - os: linux
      python: "3.9"
      env: UAMQP_ENV=LINUX39
      script:
        - pytest
        - python ./setup.py check -r -s
        - pylint --extension-pkg-whitelist=uamqp.c_uamqp uamqp
    - os: linux
      python: "3.10.0"
      env: UAMQP_ENV=LINUX310
      script:
        - pytest
        - python ./setup.py check -r -s
        - pylint --extension-pkg-whitelist=uamqp.c_uamqp uamqp
sudo: required
services:
  - docker
install:
  - pip install -r dev_requirements.txt
  - python ./setup.py build_ext --inplace
  - pip install -e .
