@@ -18,73 +18,29 @@ jobs:
1818 strategy :
1919 fail-fast : false
2020 matrix :
21- python-version :
22- [
23- " 3.5" ,
24- " 3.6" ,
25- " 3.7" ,
26- " 3.8" ,
27- " 3.9" ,
28- " 3.10" ,
29- " 3.11" ,
30- " 3.12" ,
31- " 3.13" ,
32- " 3.14" ,
33- ]
21+ python-version : ["3.10", "3.11", "3.12", "3.13", "3.14"]
3422 os : [windows-latest, macos-latest, ubuntu-latest]
35- exclude : # Python < v3.8 does not support Apple Silicon ARM64.
36- - python-version : " 3.5"
37- os : macos-latest
38- - python-version : " 3.6"
39- os : macos-latest
40- - python-version : " 3.7"
41- os : macos-latest
42- include : # So run those legacy versions on Intel CPUs.
43- - python-version : " 3.5"
44- os : macos-13
45- - python-version : " 3.6"
46- os : macos-13
47- - python-version : " 3.7"
48- os : macos-13
4923
5024 steps :
5125 - uses : actions/checkout@v5
5226
53- - name : Run tests in Docker for legacy Python
54- if : matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)
55- run : |
56- docker run --rm -v ${{ github.workspace }}:/app -w /app python:${{ matrix.python-version }} bash -c "
57- pip install --upgrade pip &&
58- pip install pytest pytest-cov parameterized mock flake8 &&
59- pip install -r requirements.txt &&
60- flake8 configcatclient --count --show-source --statistics &&
61- pytest configcatclienttests
62- "
63-
6427 - name : Set up Python ${{ matrix.python-version }}
65- if : ${{ !(matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)) }}
6628 uses : actions/setup-python@v6
6729 with :
6830 python-version : ${{ matrix.python-version }}
69- env :
70- # Needed on Ubuntu for Python 3.5 build.
71- PIP_TRUSTED_HOST : " pypi.python.org pypi.org files.pythonhosted.org"
7231
7332 - name : Install dependencies
74- if : ${{ !(matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)) }}
7533 run : |
76- python -m pip install --upgrade pip
34+ python -m pip install --upgrade pip
7735 pip install pytest pytest-cov parameterized mock flake8
7836 pip install -r requirements.txt
7937
8038 - name : Lint with flake8
81- if : ${{ !(matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)) }}
8239 run : |
8340 # Statical analysis
8441 flake8 configcatclient --count --show-source --statistics
8542
8643 - name : Test
87- if : ${{ !(matrix.os == 'ubuntu-latest' && contains(fromJSON('["3.5","3.6","3.7"]'), matrix.python-version)) }}
8844 run : pytest configcatclienttests
8945
9046 coverage :
10056
10157 - name : Install dependencies
10258 run : |
103- python -m pip install --upgrade pip
59+ python -m pip install --upgrade pip
10460 pip install pytest pytest-cov parameterized mock flake8
10561 pip install -r requirements.txt
10662
0 commit comments