| 1 | --- |
| 2 | version: 2.1 |
| 3 | |
| 4 | executors: |
| 5 | python: |
| 6 | docker: |
| 7 | - image: cimg/python:3.9 |
| 8 | |
| 9 | jobs: |
| 10 | flake8_lint: |
| 11 | executor: python |
| 12 | steps: |
| 13 | - checkout |
| 14 | - run: pip install tox |
| 15 | - run: tox -e flake8 |
| 16 | isort_lint: |
| 17 | executor: python |
| 18 | steps: |
| 19 | - checkout |
| 20 | - run: pip install tox |
| 21 | - run: tox -e isort |
| 22 | mypy_lint: |
| 23 | executor: python |
| 24 | steps: |
| 25 | - checkout |
| 26 | - run: pip install tox |
| 27 | - run: tox -e mypy |
| 28 | test: |
| 29 | parameters: |
| 30 | python: |
| 31 | type: string |
| 32 | docker: |
| 33 | - image: cimg/python:<< parameters.python >> |
| 34 | environment: |
| 35 | TOXENV: "py<< parameters.python >>" |
| 36 | steps: |
| 37 | - checkout |
| 38 | - run: echo 'export PATH=$HOME/.local/bin:$PATH' >> $BASH_ENV |
| 39 | - run: pip install --user tox "virtualenv<20.22.0" |
| 40 | - run: tox |
| 41 | test_nooptionals: |
| 42 | parameters: |
| 43 | python: |
| 44 | type: string |
| 45 | docker: |
| 46 | - image: cimg/python:<< parameters.python >> |
| 47 | environment: |
| 48 | TOXENV: "py<< parameters.python >>-nooptionals" |
| 49 | steps: |
| 50 | - checkout |
| 51 | - run: pip install tox |
| 52 | - run: tox |
| 53 | test_pypy: |
| 54 | parameters: |
| 55 | python: |
| 56 | type: string |
| 57 | docker: |
| 58 | - image: pypy:<< parameters.python >> |
| 59 | environment: |
| 60 | TOXENV: "pypy<< parameters.python >>" |
| 61 | steps: |
| 62 | - checkout |
| 63 | - run: pip install tox |
| 64 | - run: tox |
| 65 | |
| 66 | |
| 67 | workflows: |
| 68 | version: 2 |
| 69 | client_python: |
| 70 | jobs: |
| 71 | - flake8_lint |
| 72 | - isort_lint |
| 73 | - mypy_lint |
| 74 | - test: |
| 75 | matrix: |
| 76 | parameters: |
| 77 | python: |
| 78 | - "3.8.18" |
| 79 | - "3.9.18" |
| 80 | - "3.10" |
| 81 | - "3.11" |
| 82 | - "3.12" |
| 83 | - test_nooptionals: |
| 84 | matrix: |
| 85 | parameters: |
| 86 | python: |
| 87 | - "3.9" |
| 88 | - test_pypy: |
| 89 | matrix: |
| 90 | parameters: |
| 91 | python: |
| 92 | - "3.8" |