1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
version: 2
jobs:
Unit Test:
docker:
- image: cimg/python:3.12.0
steps:
- checkout
- run:
command: |
pip install virtualenv
pip install nox
nox -f noxfile.py -s unit
Compatibility Test 3.12.0:
docker:
- image: cimg/python:3.12.0
steps:
- checkout
- run:
command: |
pip install virtualenv
pip install nox
nox -f noxfile.py -s compatibility
Compatibility Test 3.11.6:
docker:
- image: cimg/python:3.11.6
steps:
- checkout
- run:
command: |
pip install virtualenv
pip install nox
nox -f noxfile.py -s compatibility
Compatibility Test 3.10:
docker:
- image: cimg/python:3.10.2
steps:
- checkout
- run:
command: |
pip install virtualenv
pip install nox
nox -f noxfile.py -s compatibility
Compatibility Test 3.9:
docker:
- image: cimg/python:3.9.10
steps:
- checkout
- run:
command: |
pip install virtualenv
pip install nox
nox -f noxfile.py -s compatibility
Lint:
docker:
- image: cimg/python:3.12.0
steps:
- checkout
- run:
command: |
pip install virtualenv
pip install nox
nox -f noxfile.py -s lint
Type Check:
docker:
- image: cimg/python:3.12.0
steps:
- checkout
- run:
command: |
pip install virtualenv
pip install nox
nox -f noxfile.py -s type_check
Release:
docker:
- image: cimg/python:3.12.0
steps:
- checkout
- run:
command: |
pip install --upgrade twine
pip install --upgrade wheel
pip install --upgrade setuptools
source twine_upload.sh
workflows:
version: 2
test:
jobs:
- Lint
- Unit Test
- Type Check
- Compatibility Test 3.12
- Compatibility Test 3.11
- Compatibility Test 3.10
- Compatibility Test 3.9
release:
jobs:
- Release:
filters:
# Runs for no branches and only for tags like "1.2.3"
branches:
ignore: /.*/
tags:
only:
- /^\d+\.\d+\.\d+$/
|