16
16
strategy :
17
17
matrix :
18
18
os : ['ubuntu-20.04', 'ubuntu-22.04']
19
- python-version : ['3.6.7', '3.7.13', '3.8.18', '3.9.19', '3.x']
20
- exclude :
21
- - os : ' ubuntu-22.04'
22
- python-version : ' 3.6.7'
19
+ python-version : ['3.7.13', '3.8.18', '3.9.19', '3.x']
23
20
24
21
steps :
25
22
- uses : actions/checkout@v4
36
33
run : |
37
34
python -m pip install --upgrade pip
38
35
pip install -U -r requirements.txt
39
- if [[ "${{ matrix.python-version }}" != "3.6.7" && "${{ matrix.python-version }}" != "3. 7.13" ]]; then
36
+ if [[ "${{ matrix.python-version }}" != "3.7.13" ]]; then
40
37
pip install -U -r requirements-dev.txt
41
38
else
42
39
# Install packages from requirements-dev.txt except those with a fixed version.
47
44
48
45
- name : Install sympy or DEVELOPMENT sympy based on Python version
49
46
run : |
50
- if [[ "${{ matrix.python-version }}" != "3.6.7" && "${{ matrix.python-version }}" != "3. 7.13" ]]; then
47
+ if [[ "${{ matrix.python-version }}" != "3.7.13" ]]; then
51
48
pip install git+https://github.com/sympy/sympy.git
52
49
else
53
50
pip install sympy
58
55
echo "Running CI tests with SymPy version = $(isympy --version)"
59
56
echo "Running CI tests with clang-format version = $(clang-format --version)"
60
57
61
- - name : Check mypy and black versions when Python != 3.6.7 and != 3.7.13 chosen (they are too broken in those Python versions).
62
- if : matrix.python-version != '3.6.7' && matrix.python-version != '3. 7.13'
58
+ - name : Check mypy and black versions when != 3.7.13 chosen (they are too broken in those Python versions).
59
+ if : matrix.python-version != '3.7.13'
63
60
run : |
64
61
mypy --version
65
62
black --version
@@ -76,17 +73,17 @@ jobs:
76
73
echo "-={ $python_file }=-"
77
74
echo "-={ Step 1: Doctests/run Python module }=-"
78
75
DOCTEST_MODE=1 PYTHONPATH=.:$PYTHONPATH python $python_file || { failed_tests+=("doctest in $python_file"); break; }
79
- # Turns out that black in Python 3.6 & 3. 7 has a heart attack when parsing equations/general_relativity/BSSN_quantities.py:
76
+ # Turns out that black in Python 3.7 has a heart attack when parsing equations/general_relativity/BSSN_quantities.py:
80
77
# INTERNAL ERROR: Black produced code that is not equivalent to the source. Please report a bug on ....
81
- if [[ "${{ matrix.python-version }}" != "3.6.7" && "${{ matrix.python-version }}" != "3. 7.13" && "${{ matrix.python-version }}" != "3.8.18" ]]; then
78
+ if [[ "${{ matrix.python-version }}" != "3.7.13" && "${{ matrix.python-version }}" != "3.8.18" ]]; then
82
79
echo "-={ Step 2: black $python_file }=-"
83
80
black --check $python_file || { failed_tests+=("black in $python_file"); break; }
84
81
echo "-={ Step 3: mypy }=-"
85
82
PYTHONPATH=.:$PYTHONPATH mypy --strict --pretty --allow-untyped-calls $python_file || { failed_tests+=("mypy in $python_file"); break; }
86
83
fi
87
84
echo "-={ Step 4: pylint }=-"
88
85
pylint_score="0"
89
- if [[ "${{ matrix.python-version }}" == "3.6.7" || "${{ matrix.python-version }}" == "3. 7.13" ]]; then
86
+ if [[ "${{ matrix.python-version }}" == "3.7.13" ]]; then
90
87
pylint_score=$(PYTHONPATH=.:$PYTHONPATH pylint --rcfile=.pylintrc_python36 $python_file | tail -2 | grep -Eo '[0-9\.]+' | head -1 || echo "0")
91
88
else
92
89
pylint_score=$(PYTHONPATH=.:$PYTHONPATH pylint --rcfile=.pylintrc $python_file | tail -2 | grep -Eo '[0-9\.]+' | head -1 || echo "0")
0 commit comments