Skip to content

Commit 540d4ed

Browse files
committed
.github/workflows/master.yml: don't run with 3.6.7
1 parent 3940890 commit 540d4ed

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/master.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
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']
2320

2421
steps:
2522
- uses: actions/checkout@v4
@@ -36,7 +33,7 @@ jobs:
3633
run: |
3734
python -m pip install --upgrade pip
3835
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
4037
pip install -U -r requirements-dev.txt
4138
else
4239
# Install packages from requirements-dev.txt except those with a fixed version.
@@ -47,7 +44,7 @@ jobs:
4744
4845
- name: Install sympy or DEVELOPMENT sympy based on Python version
4946
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
5148
pip install git+https://github.com/sympy/sympy.git
5249
else
5350
pip install sympy
@@ -58,8 +55,8 @@ jobs:
5855
echo "Running CI tests with SymPy version = $(isympy --version)"
5956
echo "Running CI tests with clang-format version = $(clang-format --version)"
6057
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'
6360
run: |
6461
mypy --version
6562
black --version
@@ -76,17 +73,17 @@ jobs:
7673
echo "-={ $python_file }=-"
7774
echo "-={ Step 1: Doctests/run Python module }=-"
7875
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:
8077
# 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
8279
echo "-={ Step 2: black $python_file }=-"
8380
black --check $python_file || { failed_tests+=("black in $python_file"); break; }
8481
echo "-={ Step 3: mypy }=-"
8582
PYTHONPATH=.:$PYTHONPATH mypy --strict --pretty --allow-untyped-calls $python_file || { failed_tests+=("mypy in $python_file"); break; }
8683
fi
8784
echo "-={ Step 4: pylint }=-"
8885
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
9087
pylint_score=$(PYTHONPATH=.:$PYTHONPATH pylint --rcfile=.pylintrc_python36 $python_file | tail -2 | grep -Eo '[0-9\.]+' | head -1 || echo "0")
9188
else
9289
pylint_score=$(PYTHONPATH=.:$PYTHONPATH pylint --rcfile=.pylintrc $python_file | tail -2 | grep -Eo '[0-9\.]+' | head -1 || echo "0")

0 commit comments

Comments
 (0)