66 strategy :
77 fail-fast : false
88 matrix :
9- python : ['3.10']
9+ python :
10+ - major_dot_minor : ' 3.10'
11+ safety : false
1012 steps :
1113 - uses : actions/checkout@v3
1214 - uses : actions/setup-python@v4
1921 #
2022 # CPython -> 3.9.0-alpha - 3.9.X
2123 # PyPy -> pypy-3.7
22- python-version : ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python), matrix.python))[startsWith(matrix.python, 'pypy')] }}
24+ python-version : ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python.major_dot_minor ), matrix.python.major_dot_minor ))[startsWith(matrix.python.major_dot_minor , 'pypy')] }}
2325 architecture : x64
2426 - run : pip install --upgrade pip wheel
2527 - run : pip install bandit black codespell flake8 flake8-2020 flake8-bugbear
4244 strategy :
4345 fail-fast : false
4446 matrix :
45- python : ['3.7', '3.8', '3.9', '3.10', '3.11']
47+ python :
48+ - major_dot_minor : ' 3.4'
49+ safety : false
50+ - major_dot_minor : ' 3.5'
51+ safety : false
52+ - major_dot_minor : ' 3.6'
53+ safety : false
54+ - major_dot_minor : ' 3.7'
55+ safety : false
56+ - major_dot_minor : ' 3.8'
57+ safety : true
58+ - major_dot_minor : ' 3.9'
59+ safety : true
60+ - major_dot_minor : ' 3.10'
61+ safety : true
62+ - major_dot_minor : ' 3.11'
63+ safety : true
4664 steps :
4765 - uses : actions/checkout@v3
4866 - uses : actions/setup-python@v4
@@ -55,12 +73,12 @@ jobs:
5573 #
5674 # CPython -> 3.9.0-alpha - 3.9.X
5775 # PyPy -> pypy-3.7
58- python-version : ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python), matrix.python))[startsWith(matrix.python, 'pypy')] }}
76+ python-version : ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python.major_dot_minor ), matrix.python.major_dot_minor ))[startsWith(matrix.python.major_dot_minor , 'pypy')] }}
5977 architecture : x64
6078 - run : pip install --upgrade pip wheel
6179 - run : pip install pytest safety
6280 - run : pip install --editable .
6381 - run : pip install numpy pylab-sdk
6482 - run : make test
65- - if : matrix.python != '3.7'
83+ - if : matrix.python.safety
6684 run : safety check
0 commit comments